summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-12-09 03:52:18 (GMT)
committerGitHub <noreply@github.com>2022-12-09 03:52:18 (GMT)
commit0448deac70be94792616c0fb0c9cb524de9a09b8 (patch)
treed9c7549faa0ca92fcf46afde196e1c5f45bd1286 /Lib
parent286e3c76a9cb8f1adc2a915f0d246a1e2e408733 (diff)
downloadcpython-0448deac70be94792616c0fb0c9cb524de9a09b8.zip
cpython-0448deac70be94792616c0fb0c9cb524de9a09b8.tar.gz
cpython-0448deac70be94792616c0fb0c9cb524de9a09b8.tar.bz2
GH-100113: remove remaining `yield from` usage from `asyncio` tests (#100114)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index bb1ffdf..5168b82 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -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())