]>
Commit | Line | Data |
---|---|---|
b10abc3a AM |
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): | |
1b1a21d4 AM |
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( | |
b10abc3a | 13 | @@ -85,7 +85,7 @@ class TestImaplib(unittest.TestCase): |
ee08c4bf | 14 | # This is the exception that should be raised. |
b10abc3a | 15 | expected_errnos = socket_helper.get_socket_conn_refused_errs() |
ee08c4bf AM |
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 | ||
4c871dee | 22 |