bpo-32684: Fix nits in tests by 1st1 · Pull Request #7225 · python/cpython
Expand Up
@@ -2131,15 +2131,15 @@ async def test():
time = 0
while True:
time += 0.05
await asyncio.gather(asyncio.sleep(0.05),
await asyncio.gather(asyncio.sleep(0.05, loop=loop),
return_exceptions=True,
loop=loop)
if time > 1:
return
async def main(): qwe = asyncio.Task(test()) await asyncio.sleep(0.2) qwe = self.new_task(loop, test()) await asyncio.sleep(0.2, loop=loop) qwe.cancel() try: await qwe Expand Down
async def main(): qwe = asyncio.Task(test()) await asyncio.sleep(0.2) qwe = self.new_task(loop, test()) await asyncio.sleep(0.2, loop=loop) qwe.cancel() try: await qwe Expand Down