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):
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:
11 s.connect(('', imaplib.IMAP4_PORT))
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:
18 + imaplib.IMAP4('0.0.0.0')
19 self.assertIn(cm.exception.errno, expected_errnos)