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