Skip to content

Commit 1462866

Browse files
mgornysaghul
authored andcommitted
Remove loop= param from asyncio.sleep() to fix tests on Python 3.10
Fixes #95
1 parent cdb3338 commit 1462866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_future_cancel(self):
116116
f = self.resolver.query('google.com', 'A')
117117
f.cancel()
118118
async def coro():
119-
await asyncio.sleep(0.1, loop=self.loop)
119+
await asyncio.sleep(0.1)
120120
await f
121121
try:
122122
self.loop.run_until_complete(coro())

0 commit comments

Comments
 (0)