We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a34e424 commit 6f75baeCopy full SHA for 6f75bae
Lib/test/test_asyncio/test_tasks.py
@@ -2131,15 +2131,15 @@ async def test():
2131
time = 0
2132
while True:
2133
time += 0.05
2134
- await asyncio.gather(asyncio.sleep(0.05),
+ await asyncio.gather(asyncio.sleep(0.05, loop=loop),
2135
return_exceptions=True,
2136
loop=loop)
2137
if time > 1:
2138
return
2139
2140
async def main():
2141
- qwe = asyncio.Task(test())
2142
- await asyncio.sleep(0.2)
+ qwe = self.new_task(loop, test())
+ await asyncio.sleep(0.2, loop=loop)
2143
qwe.cancel()
2144
try:
2145
await qwe
0 commit comments