Skip to content

Commit 414f362

Browse files
test(streamable-http): move resumption count assertion into coroutine for py311 coverage
1 parent 3579816 commit 414f362

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/shared/test_streamable_http.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,11 +1846,10 @@ async def exercise_client() -> None:
18461846
terminate_on_close=False,
18471847
):
18481848
await anyio.sleep(0)
1849+
unittest.TestCase().assertEqual(start_count, 1, f"Expected exactly one GET stream start, got {start_count}")
18491850

18501851
anyio.run(exercise_client)
18511852

1852-
unittest.TestCase().assertEqual(start_count, 1, f"Expected exactly one GET stream start, got {start_count}")
1853-
18541853

18551854
@pytest.mark.anyio
18561855
async def test_priming_event_not_sent_for_old_protocol_version():

0 commit comments

Comments
 (0)