Skip to content

Commit

Permalink
Update distributed/tests/test_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Mar 23, 2022
1 parent 3d0805d commit 7754b00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions distributed/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6465,6 +6465,7 @@ async def f(stacklevel, mode=None):
async def test_as_completed_condition_loop(c, s, a, b):
seq = c.map(inc, range(5))
ac = as_completed(seq)
# consume the ac so that the ac.condition is bound to the loop on py3.10+
async for _ in ac:
pass
assert ac.condition._loop == c.loop.asyncio_loop
Expand Down

0 comments on commit 7754b00

Please sign in to comment.