Skip to content

Commit d75d306

Browse files
committed
fix: add pragma no branch for coverage on pytest.raises
1 parent 37c95df commit d75d306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/shared/test_streamable_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2334,5 +2334,5 @@ def return_plain_text(request: httpx.Request) -> httpx.Response:
23342334
write_stream,
23352335
):
23362336
async with ClientSession(read_stream, write_stream) as session:
2337-
with pytest.raises(MCPError, match="Unexpected content type"):
2337+
with pytest.raises(MCPError, match="Unexpected content type"): # pragma: no branch
23382338
await session.initialize()

0 commit comments

Comments
 (0)