File: 0009-Skip-test_install_asyncio_reactor-on-3.14.patch

package info (click to toggle)
python-scrapy 2.13.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,948 kB
  • sloc: python: 51,970; xml: 199; makefile: 25; sh: 7
file content (26 lines) | stat: -rw-r--r-- 863 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Andrey Rakhmatullin <wrar@debian.org>
Date: Thu, 18 Dec 2025 13:16:15 +0500
Subject: Skip test_install_asyncio_reactor() on 3.14.

---
 tests/test_utils_asyncio.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test_utils_asyncio.py b/tests/test_utils_asyncio.py
index 901e03d..210557d 100644
--- a/tests/test_utils_asyncio.py
+++ b/tests/test_utils_asyncio.py
@@ -1,4 +1,5 @@
 import asyncio
+import sys
 import warnings
 
 import pytest
@@ -18,6 +19,7 @@ class TestAsyncio(TestCase):
         # the result should depend only on the pytest --reactor argument
         assert is_asyncio_reactor_installed() == (self.reactor_pytest != "default")
 
+    @pytest.mark.skipif(sys.version_info >= (3, 14), reason="Additional warnings")
     def test_install_asyncio_reactor(self):
         from twisted.internet import reactor as original_reactor