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