[3.7] bpo-32684: Fix nits in tests (GH-7225) by miss-islington · Pull Request #7231 · python/cpython
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