From dde2dc471236ee1c569cfdd60cee7382aaab43be Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Tue, 20 May 2025 09:30:03 -0400 Subject: [PATCH] Flaky test --- tests/client/test_client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/client/test_client.py b/tests/client/test_client.py index 21b9d81f4..6352e9ada 100644 --- a/tests/client/test_client.py +++ b/tests/client/test_client.py @@ -1,4 +1,5 @@ import asyncio +import sys from typing import cast import pytest @@ -540,6 +541,10 @@ class TestTimeout: with pytest.raises(McpError): await client.call_tool("sleep", {"seconds": 0.1}, timeout=0.01) + @pytest.mark.skipif( + sys.platform == "win32", + reason="This test is flaky on Windows. Sometimes the client timeout is respected and sometimes it is not.", + ) async def test_timeout_tool_call_overrides_client_timeout_even_if_lower( self, fastmcp_server: FastMCP ):