Skip to content

Commit fef614d

Browse files
committed
updated tests - ignored test_stdio_context_manager_exiting, test_stdio_client on windows due to tee command issues
1 parent d3e0975 commit fef614d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tests/client/test_stdio.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import pytest
44

5+
import sys
6+
57
from mcp.client.session import ClientSession
68
from mcp.client.stdio import (
79
StdioServerParameters,
@@ -14,16 +16,21 @@
1416
tee: str = shutil.which("tee") # type: ignore
1517
python: str = shutil.which("python") # type: ignore
1618

17-
1819
@pytest.mark.anyio
19-
@pytest.mark.skipif(tee is None, reason="could not find tee command")
20+
@pytest.mark.skipif(
21+
tee is None or sys.platform.startswith("win"),
22+
reason="tee command not available or platform is Windows"
23+
)
2024
async def test_stdio_context_manager_exiting():
2125
async with stdio_client(StdioServerParameters(command=tee)) as (_, _):
2226
pass
2327

2428

2529
@pytest.mark.anyio
26-
@pytest.mark.skipif(tee is None, reason="could not find tee command")
30+
@pytest.mark.skipif(
31+
tee is None or sys.platform.startswith("win"),
32+
reason="tee command not available or platform is Windows"
33+
)
2734
async def test_stdio_client():
2835
server_parameters = StdioServerParameters(command=tee)
2936

0 commit comments

Comments
 (0)