diff options
Diffstat (limited to 'dev-python/httpx/files')
| -rw-r--r-- | dev-python/httpx/files/httpx-0.27.0-opt-trio.patch | 17 | ||||
| -rw-r--r-- | dev-python/httpx/files/httpx-0.28.1-httptools-test.patch | 13 |
2 files changed, 30 insertions, 0 deletions
diff --git a/dev-python/httpx/files/httpx-0.27.0-opt-trio.patch b/dev-python/httpx/files/httpx-0.27.0-opt-trio.patch new file mode 100644 index 000000000000..6c2c9e67255f --- /dev/null +++ b/dev-python/httpx/files/httpx-0.27.0-opt-trio.patch @@ -0,0 +1,17 @@ +diff --git a/tests/concurrency.py b/tests/concurrency.py +index a8ed558..d5ce803 100644 +--- a/tests/concurrency.py ++++ b/tests/concurrency.py +@@ -5,11 +5,11 @@ Async environment-agnostic concurrency utilities that are only used in tests. + import asyncio + + import sniffio +-import trio + + + async def sleep(seconds: float) -> None: + if sniffio.current_async_library() == "trio": ++ import trio + await trio.sleep(seconds) # pragma: no cover + else: + await asyncio.sleep(seconds) diff --git a/dev-python/httpx/files/httpx-0.28.1-httptools-test.patch b/dev-python/httpx/files/httpx-0.28.1-httptools-test.patch new file mode 100644 index 000000000000..2170c3674647 --- /dev/null +++ b/dev-python/httpx/files/httpx-0.28.1-httptools-test.patch @@ -0,0 +1,13 @@ +diff --git a/tests/conftest.py b/tests/conftest.py +index 970c353..1ea3aa9 100644 +--- a/tests/conftest.py ++++ b/tests/conftest.py +@@ -304,7 +304,7 @@ def serve_in_thread(server: Server): + + @pytest.fixture(scope="session") + def server() -> typing.Iterator[TestServer]: +- config = Config(app=app, lifespan="off", loop="asyncio") ++ config = Config(app=app, lifespan="off", loop="asyncio", http="h11") + server = TestServer(config=config) + yield from serve_in_thread(server) + |
