https://github.com/python/cpython/commit/a475d58d8a50e69737b0dd63cac5c83e89846e07 commit: a475d58d8a50e69737b0dd63cac5c83e89846e07 branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: vstinner <[email protected]> date: 2026-11-05T17:30:26Z summary:
[3.15] gh-161336: fix host mismatch in the `test_imaplib` (GH-161349) (#161424) 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 1c56ad45979026..fdb7627fd3b75e 100644 --- a/Lib/test/test_imaplib.py +++ b/Lib/test/test_imaplib.py @@ -740,9 +740,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]
