https://github.com/python/cpython/commit/ccadcf94a6446e257a542cd8bd3f168554c9154b commit: ccadcf94a6446e257a542cd8bd3f168554c9154b branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: vstinner <[email protected]> date: 2026-11-05T14:02:10Z summary:
[3.14] gh-161336: fix host mismatch in the `test_imaplib` (GH-161349) (#161425) gh-161336: fix host mismatch in the `test_imaplib` (GH-161349) (cherry picked from commit 356e6e219f23d57b05126632bcb5875c41f09ab9) Co-authored-by: Neko Asakura <[email protected]> files: M Lib/test/test_imaplib.py diff --git a/Lib/test/test_imaplib.py b/Lib/test/test_imaplib.py index 0c11e23d760759..8afc45a9671f41 100644 --- a/Lib/test/test_imaplib.py +++ b/Lib/test/test_imaplib.py @@ -746,9 +746,8 @@ def handle(self): SimpleIMAPHandler.handle(self) _, server = self._setup(TimeoutHandler) - addr = server.server_address[1] with self.assertRaises(TimeoutError): - client = self.imap_class("localhost", addr, timeout=0.001) + client = self.imap_class(*server.server_address, timeout=0.001) def test_with_statement(self): _, server = self._setup(SimpleIMAPHandler, connect=False) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
