We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0676ed commit eeb8e6aCopy full SHA for eeb8e6a
1 file changed
Lib/test/_test_multiprocessing.py
@@ -3889,6 +3889,16 @@ def test_context(self):
3889
self.assertTrue(b.closed)
3890
self.assertRaises(OSError, a.recv)
3891
self.assertRaises(OSError, b.recv)
3892
+
3893
+ @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
3894
+ def test_wait_empty(self):
3895
+ # gh-145587: wait() with empty list should respect timeout
3896
+ timeout = 0.5
3897
+ start = time.monotonic()
3898
+ res = self.connection.wait([], timeout=timeout)
3899
+ duration = time.monotonic() - start
3900
+ self.assertEqual(res, [])
3901
+ self.assertGreaterEqual(duration, timeout - 0.1)
3902
3903
class _TestListener(BaseTestCase):
3904
0 commit comments