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.
|
class SimpleIMAPHandler(socketserver.StreamRequestHandler): |
|
timeout = support.LOOPBACK_TIMEOUT |
|
@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
Bug report
Similar to #120039,
test_imaplibhas 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
cpython/Lib/test/test_imaplib.py
Lines 461 to 472 in 4dcd91c
Linked PRs
test_imaplibfaster #120050test_imaplibfaster (GH-120050) #120069test_imaplibfaster (GH-120050) #120070