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

Method assertReachesEventually

Lib/test/_test_multiprocessing.py:1791–1799  ·  view source on GitHub ↗
(self, func, value)

Source from the content-addressed store, hash-verified

1789 cond.release()
1790
1791 def assertReachesEventually(self, func, value):
1792 for _ in support.sleeping_retry(support.SHORT_TIMEOUT):
1793 try:
1794 if func() == value:
1795 break
1796 except NotImplementedError:
1797 break
1798
1799 self.assertReturnsIfImplemented(value, func)
1800
1801 def check_invariant(self, cond):
1802 # this is only supposed to succeed when there are no sleepers

Callers 2

test_notifyMethod · 0.95
test_notify_nMethod · 0.95

Calls 2

funcFunction · 0.70

Tested by

no test coverage detected