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.
1 parent a3a4b8d commit 65b36deCopy full SHA for 65b36de
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