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

Method test_initlock

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

Source from the content-addressed store, hash-verified

17 self.lock = _thread.allocate_lock()
18
19 def test_initlock(self):
20 #Make sure locks start locked
21 self.assertFalse(self.lock.locked(),
22 "Lock object is not initialized unlocked.")
23
24 def test_release(self):
25 # Test self.lock.release()

Callers

nothing calls this directly

Calls 2

assertFalseMethod · 0.80
lockedMethod · 0.45

Tested by

no test coverage detected