Skip to content

Commit 6a85c7f

Browse files
committed
make sure test only runs if uv available
1 parent ab02c0d commit 6a85c7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: tests/client/test_stdio.py

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from mcp.types import JSONRPCMessage, JSONRPCRequest, JSONRPCResponse
1212

1313
tee: str = shutil.which("tee") # type: ignore
14+
uv: str = shutil.which("uv") # type: ignore
1415

1516

1617
@pytest.mark.anyio
@@ -49,6 +50,7 @@ async def test_stdio_client():
4950

5051

5152
@pytest.mark.anyio
53+
@pytest.mark.skipif(uv is None, reason="could not find uv command")
5254
async def test_stdio_client_bad_path():
5355
"""Check that the connection doesn't hang if process errors."""
5456
server_parameters = StdioServerParameters(

0 commit comments

Comments
 (0)