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

Method test_default_timeout

Lib/test/_test_multiprocessing.py:2256–2263  ·  view source on GitHub ↗

Test the barrier's default timeout

(self)

Source from the content-addressed store, hash-verified

2254 results.append(True)
2255
2256 def test_default_timeout(self):
2257 """
2258 Test the barrier's default timeout
2259 """
2260 barrier = self.Barrier(self.N, timeout=0.5)
2261 results = self.DummyList()
2262 self.run_threads(self._test_default_timeout_f, (barrier, results))
2263 self.assertEqual(len(results), barrier.parties)
2264
2265 def test_single_thread(self):
2266 b = self.Barrier(1)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected