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

Method testWithLock

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

Source from the content-addressed store, hash-verified

471 self.assertFalse(locked())
472
473 def testWithLock(self):
474 lock = threading.Lock()
475 self.boilerPlate(lock, lock.locked)
476
477 def testWithRLock(self):
478 lock = threading.RLock()

Callers

nothing calls this directly

Calls 2

boilerPlateMethod · 0.95
LockMethod · 0.80

Tested by

no test coverage detected