Skip to content

Commit

Permalink
Remove loop= param from asyncio.sleep() to fix tests on Python 3.10
Browse files Browse the repository at this point in the history
Fixes #95
  • Loading branch information
mgorny authored and saghul committed May 15, 2021
1 parent cdb3338 commit 1462866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_future_cancel(self):
f = self.resolver.query('google.com', 'A')
f.cancel()
async def coro():
await asyncio.sleep(0.1, loop=self.loop)
await asyncio.sleep(0.1)
await f
try:
self.loop.run_until_complete(coro())
Expand Down

0 comments on commit 1462866

Please sign in to comment.