Skip to content

Commit aeeaa2e

Browse files
fix test
1 parent cd67c1b commit aeeaa2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_asyncio/test_tasks.py

+2-2
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)