File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 22
33import pytest
44
5+ import sys
6+
57from mcp .client .session import ClientSession
68from mcp .client .stdio import (
79 StdioServerParameters ,
1416tee : str = shutil .which ("tee" ) # type: ignore
1517python : 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+ )
2024async 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+ )
2734async def test_stdio_client ():
2835 server_parameters = StdioServerParameters (command = tee )
2936
You can’t perform that action at this time.
0 commit comments