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

Method locked

Lib/test/test_contextlib.py:483–484  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

481 def testWithCondition(self):
482 lock = threading.Condition()
483 def locked():
484 return lock._is_owned()
485 self.boilerPlate(lock, locked)
486
487 def testWithSemaphore(self):

Callers 15

test_rlockMethod · 0.45
_test_lockMethod · 0.45
_test_rlockMethod · 0.45
test_lockedMethod · 0.45
acquireMethod · 0.45
test_waitMethod · 0.45
test_wait_cancelMethod · 0.45

Calls 3

_is_ownedMethod · 0.45
acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected