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

Method test_timeout

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

Source from the content-addressed store, hash-verified

1779 threading_helper.join_thread(w)
1780
1781 def test_timeout(self):
1782 cond = self.Condition()
1783 wait = TimingWrapper(cond.wait)
1784 cond.acquire()
1785 res = wait(TIMEOUT1)
1786 cond.release()
1787 self.assertEqual(res, False)
1788 self.assertTimingAlmostEqual(wait.elapsed, TIMEOUT1)
1789
1790 @classmethod
1791 def _test_waitfor_f(cls, cond, state):

Callers

nothing calls this directly

Calls 7

waitFunction · 0.90
TimingWrapperClass · 0.85
ConditionMethod · 0.45
acquireMethod · 0.45
releaseMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected