Skip to content

Conversation

mingo1996
Copy link

@mingo1996 mingo1996 commented Oct 19, 2025

Fixes #1472

Replace error message text matching with errno.ENOENT check
Improves test reliability across different system languages
Removes dependency on specific error message strings

Motivation and Context

Test assertion fails on Chinese system locale #1472

How Has This Been Tested?

uv run pytest tests/client/test_stdio.py::test_stdio_client_nonexistent_command
Results (4.98s):
1 passed

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

- Replace error message text matching with errno.ENOENT check
- Improves test reliability across different system languages
- Removes dependency on specific error message strings"
@mingo1996 mingo1996 closed this Oct 19, 2025
@mingo1996 mingo1996 reopened this Oct 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test assertion fails on Chinese system locale

1 participant