MCPcopy Index your code
hub / github.com/python/cpython / test_release_no_waiters

Method test_release_no_waiters

Lib/test/test_asyncio/test_locks.py:267–273  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

265 self.assertRaises(RuntimeError, lock.release)
266
267 async def test_release_no_waiters(self):
268 lock = asyncio.Lock()
269 await lock.acquire()
270 self.assertTrue(lock.locked())
271
272 lock.release()
273 self.assertFalse(lock.locked())
274
275 async def test_context_manager(self):
276 lock = asyncio.Lock()

Callers

nothing calls this directly

Calls 6

acquireMethod · 0.95
lockedMethod · 0.95
releaseMethod · 0.95
LockMethod · 0.80
assertTrueMethod · 0.80
assertFalseMethod · 0.80

Tested by

no test coverage detected