-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Similar to #120039, test_imaplib has at least one test that expects a timeout and that time out is scaled up with the global time out, so the refleaks tests unnecessarily take 40+ minutes.
cpython/Lib/test/test_imaplib.py
Lines 116 to 117 in 4dcd91c
| class SimpleIMAPHandler(socketserver.StreamRequestHandler): | |
| timeout = support.LOOPBACK_TIMEOUT |
cpython/Lib/test/test_imaplib.py
Lines 461 to 472 in 4dcd91c
| @requires_resource('walltime') | |
| def test_imaplib_timeout_test(self): | |
| _, server = self._setup(SimpleIMAPHandler) | |
| addr = server.server_address[1] | |
| client = self.imap_class("localhost", addr, timeout=None) | |
| self.assertEqual(client.sock.timeout, None) | |
| client.shutdown() | |
| client = self.imap_class("localhost", addr, timeout=support.LOOPBACK_TIMEOUT) | |
| self.assertEqual(client.sock.timeout, support.LOOPBACK_TIMEOUT) | |
| client.shutdown() | |
| with self.assertRaises(ValueError): | |
| client = self.imap_class("localhost", addr, timeout=0) |
Linked PRs
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error