Skip to content

Commit 954db09

Browse files
ruff
1 parent c6c2cc5 commit 954db09

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/client/test_notification_response.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ def non_sdk_server(non_sdk_server_port: int) -> Generator[None, None, None]:
116116
@pytest.mark.anyio
117117
async def test_non_compliant_notification_response(non_sdk_server: None, non_sdk_server_port: int) -> None:
118118
"""
119-
This test verifies that the client ignores unexpected responses to notifications: the spec states they should
120-
either be 202 + no response body, or 4xx + optional error body
121-
(https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#sending-messages-to-the-server),
122-
but some servers wrongly return other 2xx codes (e.g. 204). For now we simply ignore unexpected responses
123-
(aligning behaviour w/ the TS SDK).
119+
This test verifies that the client ignores unexpected responses to notifications: the spec states they should
120+
either be 202 + no response body, or 4xx + optional error body
121+
(https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#sending-messages-to-the-server),
122+
but some servers wrongly return other 2xx codes (e.g. 204). For now we simply ignore unexpected responses
123+
(aligning behaviour w/ the TS SDK).
124124
"""
125125
server_url = f"http://127.0.0.1:{non_sdk_server_port}/mcp"
126126
returned_exception = None

0 commit comments

Comments
 (0)