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

Method test_default_timeout

Lib/test/_test_multiprocessing.py:2469–2476  ·  view source on GitHub ↗

Test the barrier's default timeout

(self)

Source from the content-addressed store, hash-verified

2467
2468 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
2469 def test_default_timeout(self):
2470 """
2471 Test the barrier's default timeout
2472 """
2473 barrier = self.Barrier(self.N, timeout=0.5)
2474 results = self.DummyList()
2475 self.run_threads(self._test_default_timeout_f, (barrier, results))
2476 self.assertEqual(len(results), barrier.parties)
2477
2478 def test_single_thread(self):
2479 b = self.Barrier(1)

Callers

nothing calls this directly

Calls 4

DummyListMethod · 0.95
run_threadsMethod · 0.95
BarrierMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected