We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 632e6fb + 65b36de commit 0195cd8Copy full SHA for 0195cd8
tests/client/test_stdio.py
@@ -69,7 +69,7 @@ async def test_stdio_client():
69
@pytest.mark.anyio
70
async def test_stdio_client_bad_path():
71
"""Check that the connection doesn't hang if process errors."""
72
- server_params = StdioServerParameters(command="python", args=["-c", "non-existent-file.py"])
+ server_params = StdioServerParameters(command=sys.executable, args=["-c", "non-existent-file.py"])
73
async with stdio_client(server_params) as (read_stream, write_stream):
74
async with ClientSession(read_stream, write_stream) as session:
75
# The session should raise an error when the connection closes
0 commit comments