Skip to content

Commit 04980e3

Browse files
committed
backport: coverage — raise dev-dep floors for tests/interaction (pytest 8.4, sse-starlette 2.1)
lowest-direct only; runtime floors unchanged. - pytest>=8.4.0: tests/interaction/auth uses pytest.RaisesGroup (8.4+); matches main. - sse-starlette>=2.1.0 (dev group): 1.x keeps a module-global anyio.Event (AppStatus.should_exit_event) bound to the first test's event loop, which breaks every subsequent in-process SSE response under the streaming bridge. v1's own tests run uvicorn in a subprocess so don't observe this. Runtime floor stays >=1.6.1 (the SDK works with 1.6.1 under uvicorn).
1 parent 361bb9d commit 04980e3

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ required-version = ">=0.9.5"
5353
[dependency-groups]
5454
dev = [
5555
"pyright>=1.1.400",
56-
"pytest>=8.3.4",
56+
"pytest>=8.4.0",
5757
"ruff>=0.8.5",
5858
"trio>=0.26.2",
5959
"pytest-flakefinder>=1.1.0",
@@ -63,6 +63,11 @@ dev = [
6363
"inline-snapshot>=0.23.0",
6464
"dirty-equals>=0.9.0",
6565
"coverage[toml]==7.10.7",
66+
# tests/interaction runs the streamable-HTTP and SSE apps in-process; sse-starlette 1.x
67+
# keeps a module-global anyio.Event (`AppStatus.should_exit_event`) bound to the first
68+
# test's event loop, which breaks every subsequent in-process SSE response. The runtime
69+
# floor stays >=1.6.1 (works under uvicorn); only the test environment needs >=2.x.
70+
"sse-starlette>=2.1.0",
6671
]
6772
docs = [
6873
"mkdocs>=1.6.1",

uv.lock

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)