There was an error while loading. Please reload this page.
yield from
asyncio
1 parent 286e3c7 commit 0448deaCopy full SHA for 0448dea
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