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

Method test_cond_acquire_fail

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

Source from the content-addressed store, hash-verified

44 "Conditional acquiring of the lock failed.")
45
46 def test_cond_acquire_fail(self):
47 #Test acquiring locked lock returns False
48 self.lock.acquire(0)
49 self.assertFalse(self.lock.acquire(0),
50 "Conditional acquiring of a locked lock incorrectly "
51 "succeeded.")
52
53 def test_uncond_acquire_success(self):
54 #Make sure unconditional acquiring of a lock works.

Callers

nothing calls this directly

Calls 2

assertFalseMethod · 0.80
acquireMethod · 0.45

Tested by

no test coverage detected