Skip to content

Commit

Permalink
bpo-32684: Fix nits in tests (pythonGH-7225)
Browse files Browse the repository at this point in the history
  • Loading branch information
1st1 authored May 29, 2018
1 parent a34e424 commit 6f75bae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/test/test_asyncio/test_tasks.py
Original file line number Diff line number Diff line change
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

0 comments on commit 6f75bae

Please sign in to comment.