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

Method testWithCondition

Lib/test/test_contextlib.py:481–485  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

479 self.boilerPlate(lock, lock._is_owned)
480
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):
488 lock = threading.Semaphore()

Callers

nothing calls this directly

Calls 2

boilerPlateMethod · 0.95
ConditionMethod · 0.45

Tested by

no test coverage detected