MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_release

Method test_release

Lib/test/test_dummy_thread.py:24–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 "Lock object is not initialized unlocked.")
23
24 def test_release(self):
25 # Test self.lock.release()
26 self.lock.acquire()
27 self.lock.release()
28 self.assertFalse(self.lock.locked(),
29 "Lock object did not release properly.")
30
31 def test_LockType_context_manager(self):
32 with _thread.LockType():

Callers

nothing calls this directly

Calls 4

assertFalseMethod · 0.80
acquireMethod · 0.45
releaseMethod · 0.45
lockedMethod · 0.45

Tested by

no test coverage detected