Skip to content

Commit 65aecfa

Browse files
committed
Avoid branch coverage noise in connection error test
1 parent b3cb4d8 commit 65aecfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/client/test_session_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ async def fail_request(request: httpx.Request) -> httpx.Response:
308308

309309
with mock.patch("mcp.client.session_group.create_mcp_http_client", return_value=http_client):
310310
async with ClientSessionGroup() as group:
311-
with pytest.raises(MCPError) as excinfo:
311+
with pytest.raises(MCPError) as excinfo: # pragma: no branch
312312
await group.connect_to_server(
313313
StreamableHttpParameters(url="http://example.test/mcp"),
314314
ClientSessionParameters(read_timeout_seconds=2),

0 commit comments

Comments
 (0)