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

Method wait_phase

Lib/test/lock_tests.py:117–121  ·  view source on GitHub ↗
(self, phase, expected)

Source from the content-addressed store, hash-verified

115 """
116
117 def wait_phase(self, phase, expected):
118 for _ in support.sleeping_retry(support.SHORT_TIMEOUT):
119 if len(phase) >= expected:
120 break
121 self.assertEqual(len(phase), expected)
122
123 def test_constructor(self):
124 lock = self.locktype()

Callers 3

test_reacquireMethod · 0.80
fMethod · 0.80
test_recursion_countMethod · 0.80

Calls 1

assertEqualMethod · 0.45

Tested by

no test coverage detected