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

Method test_reset_barrier

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

Source from the content-addressed store, hash-verified

1528 self.assertFalse(barrier.broken)
1529
1530 async def test_reset_barrier(self):
1531 barrier = asyncio.Barrier(1)
1532
1533 asyncio.create_task(barrier.reset())
1534 await asyncio.sleep(0)
1535
1536 self.assertEqual(barrier.n_waiting, 0)
1537 self.assertFalse(barrier.broken)
1538
1539 async def test_reset_barrier_while_tasks_waiting(self):
1540 barrier = asyncio.Barrier(self.N)

Callers

nothing calls this directly

Calls 6

resetMethod · 0.95
BarrierMethod · 0.80
assertFalseMethod · 0.80
create_taskMethod · 0.45
sleepMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected