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

Method test_clear

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

Source from the content-addressed store, hash-verified

352 self.assertFalse(ev._waiters)
353
354 async def test_clear(self):
355 ev = asyncio.Event()
356 self.assertFalse(ev.is_set())
357
358 ev.set()
359 self.assertTrue(ev.is_set())
360
361 ev.clear()
362 self.assertFalse(ev.is_set())
363
364 async def test_clear_with_waiters(self):
365 ev = asyncio.Event()

Callers

nothing calls this directly

Calls 6

is_setMethod · 0.95
setMethod · 0.95
clearMethod · 0.95
EventMethod · 0.80
assertFalseMethod · 0.80
assertTrueMethod · 0.80

Tested by

no test coverage detected