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

Method test_uncond_acquire_success

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

Source from the content-addressed store, hash-verified

51 "succeeded.")
52
53 def test_uncond_acquire_success(self):
54 #Make sure unconditional acquiring of a lock works.
55 self.lock.acquire()
56 self.assertTrue(self.lock.locked(),
57 "Uncondional locking failed.")
58
59 def test_uncond_acquire_return_val(self):
60 #Make sure that an unconditional locking returns True.

Callers

nothing calls this directly

Calls 3

assertTrueMethod · 0.80
acquireMethod · 0.45
lockedMethod · 0.45

Tested by

no test coverage detected