From 1a2bcfcae4588df25b674901896f92b68e92cf4d Mon Sep 17 00:00:00 2001 From: Kenny Van de Maele Date: Thu, 11 Jun 2026 15:48:52 +0200 Subject: [PATCH] fix(tests): add httpx2 so starlette.testclient stops warning on every run (#3943) Starlette 1.2.0 prefers httpx2 in the test client and emits a StarletteDeprecationWarning on TestClient import when only classic httpx is installed. Adding httpx2 silences the suite-wide warning; runtime code keeps importing httpx directly and is unaffected. Fixes #3942 --- requirements.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/requirements.txt b/requirements.txt index 2c4072980..b71f9897b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -43,3 +43,7 @@ qrcode[pil] croniter pytest pytest-asyncio +# starlette.testclient prefers httpx2 since Starlette 1.2.0 and warns on every +# TestClient import when only classic httpx is present. Runtime code keeps +# using `httpx` above; this is test-client only. +httpx2