mirror of
https://github.com/python/cpython.git
synced 2025-10-31 21:51:50 +00:00
GH-100113: remove remaining yield from usage from asyncio tests (#100114)
This commit is contained in:
parent
286e3c76a9
commit
0448deac70
1 changed files with 2 additions and 2 deletions
|
|
@ -2092,8 +2092,8 @@ def test_cancel_gather_1(self):
|
||||||
async def create():
|
async def create():
|
||||||
# The indirection fut->child_coro is needed since otherwise the
|
# The indirection fut->child_coro is needed since otherwise the
|
||||||
# gathering task is done at the same time as the child future
|
# gathering task is done at the same time as the child future
|
||||||
def child_coro():
|
async def child_coro():
|
||||||
return (yield from fut)
|
return await fut
|
||||||
gather_future = asyncio.gather(child_coro())
|
gather_future = asyncio.gather(child_coro())
|
||||||
return asyncio.ensure_future(gather_future)
|
return asyncio.ensure_future(gather_future)
|
||||||
gather_task = loop.run_until_complete(create())
|
gather_task = loop.run_until_complete(create())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue