Skip to content

Commit 174df2a

Browse files
Add pragma to fix coverage measurement bug with xdist on Python 3.11
1 parent 37384fc commit 174df2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/shared/test_streamable_http.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,9 @@ async def test_resume_stream_with_405_response(basic_server: None, basic_server_
17991799
transport.session_id = get_session_id()
18001800

18011801
# Now try to resume with the session - server might return 405
1802-
read_stream_writer, read_stream_reader = anyio.create_memory_object_stream[SessionMessage | Exception](0)
1802+
read_stream_writer, read_stream_reader = anyio.create_memory_object_stream[SessionMessage | Exception](
1803+
0
1804+
) # pragma: no cover - xdist coverage bug on 3.11
18031805

18041806
async with httpx.AsyncClient() as client:
18051807
# This should handle the 405 gracefully

0 commit comments

Comments
 (0)