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

Method test_timeout

Lib/test/_test_multiprocessing.py:2449–2455  ·  view source on GitHub ↗

Test wait(timeout)

(self)

Source from the content-addressed store, hash-verified

2447
2448 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
2449 def test_timeout(self):
2450 """
2451 Test wait(timeout)
2452 """
2453 results = self.DummyList()
2454 self.run_threads(self._test_timeout_f, (self.barrier, results))
2455 self.assertEqual(len(results), self.barrier.parties)
2456
2457 @classmethod
2458 def _test_default_timeout_f(cls, barrier, results):

Callers

nothing calls this directly

Calls 3

DummyListMethod · 0.95
run_threadsMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected