Skip to content

Commit effec9f

Browse files
fix: add no branch pragma for async context manager coverage issue
1 parent 3e37081 commit effec9f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/shared/test_progress_notifications.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@ async def handle_list_tools() -> list[types.Tool]:
371371
with patch("mcp.shared.session.logging.error", side_effect=mock_log_error):
372372
transport = InMemoryTransport(server)
373373
async with transport.connect() as (read_stream, write_stream):
374-
async with ClientSession(read_stream=read_stream, write_stream=write_stream) as session:
374+
async with ClientSession( # pragma: no branch
375+
read_stream=read_stream, write_stream=write_stream
376+
) as session:
375377
await session.initialize()
376378
# Send a request with a failing progress callback
377379
result = await session.send_request(

0 commit comments

Comments
 (0)