Summary
Starlette 1.3.1 (merged via PR #983) deprecates httpx in favor of httpx2 for use with starlette.testclient. Since filterwarnings = ["error"] is set in pyproject.toml, this deprecation warning is promoted to an error and causes collection to fail for three test packages.
Affected test paths
ERROR test/adapters/driven/test_delivery_inbox_url.py
ERROR test/adapters/driving/fastapi
ERROR test/demo
Error
starlette.exceptions.StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead.
Fix
Replace httpx with httpx2 in dev dependencies (and any import httpx in test/adapter code that relies on starlette.testclient), or pin starlette < 1.3.1 until migration is complete.
Reproduction
uv run pytest test/adapters/driven/test_delivery_inbox_url.py
Introduced by the starlette upgrade in PR #983.
Summary
Starlette 1.3.1 (merged via PR #983) deprecates
httpxin favor ofhttpx2for use withstarlette.testclient. Sincefilterwarnings = ["error"]is set inpyproject.toml, this deprecation warning is promoted to an error and causes collection to fail for three test packages.Affected test paths
Error
Fix
Replace
httpxwithhttpx2in dev dependencies (and anyimport httpxin test/adapter code that relies onstarlette.testclient), or pinstarlette < 1.3.1until migration is complete.Reproduction
Introduced by the starlette upgrade in PR #983.