Initial Checks
Description
When running the test suite on a Chinese (Simplified, zh_CN) Windows system, one of the assertions failed due to language differences.
Environment
- OS: Windows 11 (Simplified Chinese)
- Python version: 3.11
Expected Behavior
The test should pass regardless of system language.
Actual Behavior
The test fails with an AssertionError:

Suggestion
In Windows, it is modified to determine based on error codes.
assert (
"nonexistent"inerror_messageor"not found"inerror_message.lower()
or"[winerror 2]"inerror_message# or "cannot find the file" in error_message.lower() # Windows error message
)
Example Code
uvrunpytesttests/client/test_stdio.py::test_stdio_client_nonexistent_command
Python & MCP Python SDK
Python version: 3.11
MCP Python SDK:latest
Initial Checks
Description
When running the test suite on a Chinese (Simplified, zh_CN) Windows system, one of the assertions failed due to language differences.
Environment
Expected Behavior
The test should pass regardless of system language.
Actual Behavior
The test fails with an

AssertionError:Suggestion
In Windows, it is modified to determine based on error codes.
Example Code
Python & MCP Python SDK