File: disable_backends.patch

package info (click to toggle)
python-anyio 3.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 920 kB
  • sloc: python: 10,974; makefile: 6; sh: 2
file content (25 lines) | stat: -rw-r--r-- 745 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
Description: disable testing the trio backend (too old)
Author: Julien Puydt
Forwarded: Debian-specific

--- python-anyio.orig/src/anyio/_core/_eventloop.py
+++ python-anyio/src/anyio/_core/_eventloop.py
@@ -20,7 +20,7 @@
 # This must be updated when new backends are introduced
 from ._compat import DeprecatedAwaitableFloat
 
-BACKENDS = "asyncio", "trio"
+BACKENDS = ("asyncio", ) # "trio"
 
 T_Retval = TypeVar("T_Retval")
 threadlocals = threading.local()
--- python-anyio.orig/tests/conftest.py
+++ python-anyio/tests/conftest.py
@@ -38,7 +38,6 @@
             marks=uvloop_marks,
             id="asyncio+uvloop",
         ),
-        pytest.param("trio"),
     ]
 )
 def anyio_backend(request: SubRequest) -> Tuple[str, Dict[str, Any]]: