]> git.pld-linux.org Git - packages/python3.git/blob - python3-tests.patch
move pdb/profile/pstats from -devel-tools to -modules
[packages/python3.git] / python3-tests.patch
1 diff -urNp -x '*.orig' Python-3.9.2.org/Lib/test/test_imaplib.py Python-3.9.2/Lib/test/test_imaplib.py
2 --- Python-3.9.2.org/Lib/test/test_imaplib.py   2021-02-19 13:31:44.000000000 +0100
3 +++ Python-3.9.2/Lib/test/test_imaplib.py       2021-02-25 18:42:23.540101637 +0100
4 @@ -74,7 +74,7 @@ class TestImaplib(unittest.TestCase):
5  
6      def test_imap4_host_default_value(self):
7          # Check whether the IMAP4_PORT is truly unavailable.
8 -        with socket.socket() as s:
9 +        with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
10              try:
11                  s.connect(('', imaplib.IMAP4_PORT))
12                  self.skipTest(
13 @@ -85,7 +85,7 @@ class TestImaplib(unittest.TestCase):
14          # This is the exception that should be raised.
15          expected_errnos = socket_helper.get_socket_conn_refused_errs()
16          with self.assertRaises(OSError) as cm:
17 -            imaplib.IMAP4()
18 +            imaplib.IMAP4('0.0.0.0')
19          self.assertIn(cm.exception.errno, expected_errnos)
20  
21  
22
This page took 0.034799 seconds and 3 git commands to generate.