File: 0001-Skip-curio-test.patch

package info (click to toggle)
python-sniffio 1.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 236 kB
  • sloc: python: 185; sh: 44; makefile: 19
file content (25 lines) | stat: -rw-r--r-- 779 bytes parent folder | download | duplicates (2)
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
From: Robie Basak <robie@justgohome.co.uk>
Date: Tue, 7 Nov 2023 13:28:02 +0000
Subject: Skip curio test

Forwarded: not-needed
Last-Update: 2023-11-07

Debian doesn't package curio so it cannot be tested here.
---
 sniffio/_tests/test_sniffio.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sniffio/_tests/test_sniffio.py b/sniffio/_tests/test_sniffio.py
index 02945a9..6ce6076 100644
--- a/sniffio/_tests/test_sniffio.py
+++ b/sniffio/_tests/test_sniffio.py
@@ -64,7 +64,7 @@ def test_asyncio():
     "curio broken on 3.12 (https://github.com/python-trio/sniffio/pull/42)",
 )
 def test_curio():
-    import curio
+    curio = docutils = pytest.importorskip("curio")
 
     with pytest.raises(AsyncLibraryNotFoundError):
         current_async_library()