mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-38107: Replace direct future and task contructor calls with factories in asyncio tests (GH-15928)
This commit is contained in:
parent
781266ebb6
commit
9aee90018a
13 changed files with 156 additions and 159 deletions
|
@ -206,7 +206,7 @@ class CoroutineTests(BaseTest):
|
|||
|
||||
async def runner():
|
||||
coro = afunc()
|
||||
t = asyncio.Task(coro, loop=self.loop)
|
||||
t = self.loop.create_task(coro)
|
||||
try:
|
||||
await asyncio.sleep(0)
|
||||
await coro
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue