Skip to content

Commit e43de6c

Browse files
test(streamable-http): avoid assert-only coverage gap on py311
1 parent dbddc8b commit e43de6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/shared/test_streamable_http.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,8 @@ async def exercise_client() -> None:
18481848

18491849
anyio.run(exercise_client)
18501850

1851-
assert start_count == 1
1851+
if start_count != 1:
1852+
raise AssertionError(f"Expected exactly one GET stream start, got {start_count}")
18521853

18531854

18541855
@pytest.mark.anyio

0 commit comments

Comments
 (0)