We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd67c1b commit aeeaa2eCopy full SHA for aeeaa2e
Lib/test/test_asyncio/test_tasks.py
@@ -2092,8 +2092,8 @@ def test_cancel_gather_1(self):
2092
async def create():
2093
# The indirection fut->child_coro is needed since otherwise the
2094
# gathering task is done at the same time as the child future
2095
- def child_coro():
2096
- return (yield from fut)
+ async def child_coro():
+ return await fut
2097
gather_future = asyncio.gather(child_coro())
2098
return asyncio.ensure_future(gather_future)
2099
gather_task = loop.run_until_complete(create())
0 commit comments