MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_neg_timeout

Method test_neg_timeout

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

Source from the content-addressed store, hash-verified

5392 p.join()
5393
5394 def test_neg_timeout(self):
5395 from multiprocessing.connection import wait
5396 a, b = multiprocessing.Pipe()
5397 t = time.monotonic()
5398 res = wait([a], timeout=-1)
5399 t = time.monotonic() - t
5400 self.assertEqual(res, [])
5401 self.assertLess(t, 1)
5402 a.close()
5403 b.close()
5404
5405#
5406# 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