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

Method test_cond_acquire_success

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

Source from the content-addressed store, hash-verified

39 self.assertRaises(RuntimeError, self.lock.release)
40
41 def test_cond_acquire_success(self):
42 #Make sure the conditional acquiring of the lock works.
43 self.assertTrue(self.lock.acquire(0),
44 "Conditional acquiring of the lock failed.")
45
46 def test_cond_acquire_fail(self):
47 #Test acquiring locked lock returns False

Callers

nothing calls this directly

Calls 2

assertTrueMethod · 0.80
acquireMethod · 0.45

Tested by

no test coverage detected