mirror of https://github.com/python/cpython
GH-100113: remove remaining `yield from` usage from `asyncio` tests (#100114)
This commit is contained in:
parent
286e3c76a9
commit
0448deac70
|
@ -2092,8 +2092,8 @@ class BaseTaskTests:
|
|||
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())
|
||||
|
|
Loading…
Reference in New Issue