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

Method test_timeout

Lib/test/_test_multiprocessing.py:2237–2243  ·  view source on GitHub ↗

Test wait(timeout)

(self)

Source from the content-addressed store, hash-verified

2235 results.append(True)
2236
2237 def test_timeout(self):
2238 """
2239 Test wait(timeout)
2240 """
2241 results = self.DummyList()
2242 self.run_threads(self._test_timeout_f, (self.barrier, results))
2243 self.assertEqual(len(results), self.barrier.parties)
2244
2245 @classmethod
2246 def _test_default_timeout_f(cls, barrier, results):

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected