Skip to content

Commit 0448dea

Browse files
GH-100113: remove remaining yield from usage from asyncio tests (#100114)
1 parent 286e3c7 commit 0448dea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_asyncio/test_tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,8 +2092,8 @@ def test_cancel_gather_1(self):
20922092
async def create():
20932093
# The indirection fut->child_coro is needed since otherwise the
20942094
# gathering task is done at the same time as the child future
2095-
def child_coro():
2096-
return (yield from fut)
2095+
async def child_coro():
2096+
return await fut
20972097
gather_future = asyncio.gather(child_coro())
20982098
return asyncio.ensure_future(gather_future)
20992099
gather_task = loop.run_until_complete(create())

0 commit comments

Comments
 (0)