summaryrefslogtreecommitdiff
path: root/dev-python/aiodns/files/aiodns-3.0.0-py3.10-tests.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-08-21 23:14:26 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-08-21 23:14:26 +0100
commit7c59acba5699c9c58090a7a738669669a7307023 (patch)
treed51d27d020895a6b7a3298d9d1b9846c1fcb59a0 /dev-python/aiodns/files/aiodns-3.0.0-py3.10-tests.patch
parente2db47eaae00ec33f8971db44b68645c5d3b9590 (diff)
gentoo resync : 21.08.2021
Diffstat (limited to 'dev-python/aiodns/files/aiodns-3.0.0-py3.10-tests.patch')
-rw-r--r--dev-python/aiodns/files/aiodns-3.0.0-py3.10-tests.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-python/aiodns/files/aiodns-3.0.0-py3.10-tests.patch b/dev-python/aiodns/files/aiodns-3.0.0-py3.10-tests.patch
new file mode 100644
index 000000000000..19062f1c8861
--- /dev/null
+++ b/dev-python/aiodns/files/aiodns-3.0.0-py3.10-tests.patch
@@ -0,0 +1,24 @@
+From 146286601fe80eb4ede8126769e79b5d5e63f64e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sat, 15 May 2021 10:03:01 +0200
+Subject: [PATCH] Remove loop= param from asyncio.sleep() to fix tests on
+ Python 3.10
+
+Fixes #95
+---
+ tests.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests.py b/tests.py
+index 7b2279f..fc0e2b9 100755
+--- a/tests.py
++++ b/tests.py
+@@ -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())