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

Method test_lock_representation

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

Source from the content-addressed store, hash-verified

96 self.assertEqual(retval, False)
97
98 def test_lock_representation(self):
99 self.lock.acquire()
100 self.assertIn("locked", repr(self.lock))
101 self.lock.release()
102 self.assertIn("unlocked", repr(self.lock))
103
104
105class RLockTests(unittest.TestCase):

Callers

nothing calls this directly

Calls 4

reprFunction · 0.85
assertInMethod · 0.80
acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected