Skip to content

Commit 5db1b10

Browse files
committed
Revert "updated tests - ignored test_stdio_context_manager_exiting, test_stdio_client on windows due to tee command issues"
This reverts commit fef614d.
1 parent fef614d commit 5db1b10

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tests/client/test_stdio.py

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

33
import pytest
44

5-
import sys
6-
75
from mcp.client.session import ClientSession
86
from mcp.client.stdio import (
97
StdioServerParameters,
@@ -16,21 +14,16 @@
1614
tee: str = shutil.which("tee") # type: ignore
1715
python: str = shutil.which("python") # type: ignore
1816

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

2824

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

0 commit comments

Comments
 (0)