Skip to content

Conversation

@WOnder93
Copy link
Contributor

Motivation and Context

Some platforms (e.g. Fedora) don't provide an unversioned python binary. In such case tests/client/test_stdio.py fails when it tries to call it. Use sys.executable instead, which works reliably.

How Has This Been Tested?

Verified that this makes the test pass on Fedora.

Breaking Changes

No.

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

Some platforms (e.g. Fedora) don't provide an unversioned `python`
binary. In such case `tests/client/test_stdio.py` fails when it tries to
call it. Use `sys.executable` instead, which works reliably.

Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>
@maxisbey maxisbey enabled auto-merge (squash) December 12, 2025 14:02
@maxisbey maxisbey merged commit 65b36de into modelcontextprotocol:main Dec 12, 2025
18 checks passed
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.

2 participants