Skip to content

Commit c52c467

Browse files
fix: cap httpx < 0.28 for Python 3.9 (starlette TestClient compat)
httpx 0.28+ removed the `app` parameter from Client.__init__(), breaking starlette < 0.30's TestClient. Cap httpx on Python 3.9 where starlette is pinned to < 0.30. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Deborah Jacob <deborah@botanu.ai>
1 parent a4ba44f commit c52c467

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ dev = [
131131
"pytest-asyncio >= 0.21.0",
132132
"pytest-cov >= 4.1.0",
133133
"coverage[toml] >= 7.0",
134-
"httpx >= 0.24.0",
134+
"httpx >= 0.24.0, < 0.28.0; python_version < '3.10'",
135+
"httpx >= 0.24.0; python_version >= '3.10'",
135136
"starlette >= 0.27.0, < 0.30.0; python_version < '3.10'",
136137
"starlette >= 0.27.0; python_version >= '3.10'",
137138
"ruff >= 0.4.0",

0 commit comments

Comments
 (0)