gentoo/dev-python/httpx/files/httpx-0.28.1-httptools-test.patch
Michał Górny b6acd6fc03
dev-python/httpx: Add a patch for testing w/ httptools installed
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-02-16 19:43:55 +01:00

14 lines
486 B
Diff

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)