MCPcopy Index your code
hub / github.com/python/cpython / test_neg_timeout

Method test_neg_timeout

Lib/test/_test_multiprocessing.py:5725–5734  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5723
5724 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
5725 def test_neg_timeout(self):
5726 from multiprocessing.connection import wait
5727 a, b = multiprocessing.Pipe()
5728 t = time.monotonic()
5729 res = wait([a], timeout=-1)
5730 t = time.monotonic() - t
5731 self.assertEqual(res, [])
5732 self.assertLess(t, 1)
5733 a.close()
5734 b.close()
5735
5736#
5737# Issue 14151: Test invalid family on invalid environment

Callers

nothing calls this directly

Calls 5

waitFunction · 0.90
PipeMethod · 0.80
assertEqualMethod · 0.45
assertLessMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected