Skip to content

Commit 65b36de

Browse files
authored
fix: use correct python command name in test_stdio.py (#1782)
Signed-off-by: Ondrej Mosnáček <[email protected]>
1 parent a3a4b8d commit 65b36de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/client/test_stdio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async def test_stdio_client():
6969
@pytest.mark.anyio
7070
async def test_stdio_client_bad_path():
7171
"""Check that the connection doesn't hang if process errors."""
72-
server_params = StdioServerParameters(command="python", args=["-c", "non-existent-file.py"])
72+
server_params = StdioServerParameters(command=sys.executable, args=["-c", "non-existent-file.py"])
7373
async with stdio_client(server_params) as (read_stream, write_stream):
7474
async with ClientSession(read_stream, write_stream) as session:
7575
# The session should raise an error when the connection closes

0 commit comments

Comments
 (0)