Skip to content

Commit

Permalink
GH-100113: remove remaining yield from usage from asyncio tests (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 authored Dec 9, 2022
1 parent 286e3c7 commit 0448dea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_asyncio/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2092,8 +2092,8 @@ def test_cancel_gather_1(self):
async def create():
# The indirection fut->child_coro is needed since otherwise the
# gathering task is done at the same time as the child future
def child_coro():
return (yield from fut)
async def child_coro():
return await fut
gather_future = asyncio.gather(child_coro())
return asyncio.ensure_future(gather_future)
gather_task = loop.run_until_complete(create())
Expand Down

0 comments on commit 0448dea

Please sign in to comment.