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 2
2
3
3
import pytest
4
4
5
+ import sys
6
+
5
7
from mcp .client .session import ClientSession
6
8
from mcp .client .stdio import (
7
9
StdioServerParameters ,
14
16
tee : str = shutil .which ("tee" ) # type: ignore
15
17
python : str = shutil .which ("python" ) # type: ignore
16
18
17
-
18
19
@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
+ )
20
24
async def test_stdio_context_manager_exiting ():
21
25
async with stdio_client (StdioServerParameters (command = tee )) as (_ , _ ):
22
26
pass
23
27
24
28
25
29
@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
+ )
27
34
async def test_stdio_client ():
28
35
server_parameters = StdioServerParameters (command = tee )
29
36
You can’t perform that action at this time.
0 commit comments