jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / python / httpx / patches / 01-no-trio.patch
blobb4279a9ed008603084c6375db62d1fe63558dc31
1 We have no trio pacakged yet.
3 --- httpx-0.27.2/pyproject.toml.orig
4 +++ httpx-0.27.2/pyproject.toml
5 @@ -120,8 +120,6 @@
6 filterwarnings = [
7 "error",
8 "ignore: You seem to already have a custom sys.excepthook handler installed. I'll skip installing Trio's custom handler, but this means MultiErrors will not show full tracebacks.:RuntimeWarning",
9 - # See: https://github.com/agronholm/anyio/issues/508
10 - "ignore: trio.MultiError is deprecated since Trio 0.22.0:trio.TrioDeprecationWarning"
12 markers = [
13 "copied_from(source, changes=None): mark test as copied from somewhere else, along with a description of changes made to accodomate e.g. our test setup",
14 --- httpx-0.27.2/requirements.txt.orig
15 +++ httpx-0.27.2/requirements.txt
16 @@ -23,7 +23,5 @@
17 mypy==1.11.0
18 pytest==8.3.1
19 ruff==0.5.4
20 -trio==0.26.0
21 -trio-typing==0.10.0
22 trustme==1.1.0
23 uvicorn==0.30.3
24 --- httpx-0.27.2/tests/concurrency.py.orig
25 +++ httpx-0.27.2/tests/concurrency.py
26 @@ -5,11 +5,7 @@
27 import asyncio
29 import sniffio
30 -import trio
33 async def sleep(seconds: float) -> None:
34 - if sniffio.current_async_library() == "trio":
35 - await trio.sleep(seconds) # pragma: no cover
36 - else:
37 - await asyncio.sleep(seconds)
38 + await asyncio.sleep(seconds)