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:1092–1098  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1090 self.assertRaises(ValueError, sem.release)
1091
1092 async def test_release_no_waiters(self):
1093 sem = asyncio.Semaphore()
1094 await sem.acquire()
1095 self.assertTrue(sem.locked())
1096
1097 sem.release()
1098 self.assertFalse(sem.locked())
1099
1100 async def test_acquire_fifo_order(self):
1101 sem = asyncio.Semaphore(1)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected