Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Skip flaky windows test / mulit-client garbage collection (#1592)

Jeremiah Lowine3f829197d7d
diff --git a/tests/test_mcp_config.py b/tests/test_mcp_config.py
index 501bccf7f..dc0b98af2 100644
--- a/tests/test_mcp_config.py
+++ b/tests/test_mcp_config.py
@@ -3,6 +3,7 @@ import gc
import inspect
import logging
import os
+import sys
import tempfile
from collections.abc import AsyncGenerator
from pathlib import Path
@@ -243,7 +244,8 @@ async def test_multi_client(tmp_path: Path):
@pytest.mark.skipif(
- running_under_debugger(), reason="Debugger holds a reference to the transport"
+ running_under_debugger() or sys.platform.startswith("win32"),
+ reason="Debugger holds a reference to the transport; Windows has process lifecycle issues",
)
@pytest.mark.timeout(5)
async def test_multi_client_lifespan(tmp_path: Path):
diff --git a/uv.lock b/uv.lock
index 2f7f8c88a..446e8e09a 100644
--- a/uv.lock
+++ b/uv.lock
@@ -1,5 +1,5 @@
version = 1
-revision = 2
+revision = 3
requires-python = ">=3.10"
resolution-markers = [
"python_full_version >= '3.11'",