Jeremiah Lowin commited on
Commit
dbe74ca
·
1 Parent(s): d4b51b1

Flaky test

Browse files
Files changed (1) hide show
  1. tests/client/test_client.py +5 -0
tests/client/test_client.py CHANGED
@@ -1,4 +1,5 @@
1
  import asyncio
 
2
  from typing import cast
3
 
4
  import pytest
@@ -540,6 +541,10 @@ class TestTimeout:
540
  with pytest.raises(McpError):
541
  await client.call_tool("sleep", {"seconds": 0.1}, timeout=0.01)
542
 
 
 
 
 
543
  async def test_timeout_tool_call_overrides_client_timeout_even_if_lower(
544
  self, fastmcp_server: FastMCP
545
  ):
 
1
  import asyncio
2
+ import sys
3
  from typing import cast
4
 
5
  import pytest
 
541
  with pytest.raises(McpError):
542
  await client.call_tool("sleep", {"seconds": 0.1}, timeout=0.01)
543
 
544
+ @pytest.mark.skipif(
545
+ sys.platform == "win32",
546
+ reason="This test is flaky on Windows. Sometimes the client timeout is respected and sometimes it is not.",
547
+ )
548
  async def test_timeout_tool_call_overrides_client_timeout_even_if_lower(
549
  self, fastmcp_server: FastMCP
550
  ):