8000 bpo-43352: Add a Barrier object to asyncio synchronized primitives (G… · python/cpython@34cfc75 · GitHub
[go: up one dir, main page]

Skip to content

Commit 34cfc75

Browse files
committed
bpo-43352: Add a Barrier object to asyncio synchronized primitives (GH-24903)
Suppress again trailing whitespaces :o
1 parent b60a931 commit 34cfc75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_asyncio/test_locks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ async def coro_reset():
13051305
async def test_reset_barrier_when_tasks_half_draining(self):
13061306
barrier = asyncio.Barrier(self.N)
13071307
results1 = []
1308-
rest_of_tasks = self.N//2
1308+
rest_of_tasks = self.N//2
13091309

13101310
async def coro():
13111311
try:
@@ -1318,7 +1318,7 @@ async def coro():
13181318
if rest_of_tasks == barrier._count:
13191319
# tasks outside the barrier
13201320
await barrier.reset()
1321-
1321+
13221322
await self.gather_tasks(self.N, coro)
13231323

13241324
self.assertEqual(results1, [True]*rest_of_tasks)

0 commit comments

Comments
 (0)
0