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

Method test_timeout

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

Source from the content-addressed store, hash-verified

1979 threading_helper.join_thread(w)
1980
1981 def test_timeout(self):
1982 cond = self.Condition()
1983 wait = TimingWrapper(cond.wait)
1984 cond.acquire()
1985 res = wait(TIMEOUT1)
1986 cond.release()
1987 self.assertEqual(res, False)
1988 self.assertTimingAlmostEqual(wait.elapsed, TIMEOUT1)
1989
1990 @classmethod
1991 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