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

Method test_initial_value_zero

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

Source from the content-addressed store, hash-verified

911class SemaphoreTests(unittest.IsolatedAsyncioTestCase):
912
913 def test_initial_value_zero(self):
914 sem = asyncio.Semaphore(0)
915 self.assertTrue(sem.locked())
916
917 async def test_repr(self):
918 sem = asyncio.Semaphore()

Callers

nothing calls this directly

Calls 3

lockedMethod · 0.95
SemaphoreMethod · 0.80
assertTrueMethod · 0.80

Tested by

no test coverage detected