File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 99from mcp .server import Server
1010from mcp .shared .memory import create_client_server_memory_streams
1111
12+ # Mark all tests in this module to ignore memory stream cleanup warnings
13+ # These occur with tg.cancel_scope.cancel() pattern, same as SDK's own
14+ # create_connected_server_and_client_session in src/mcp/shared/memory.py
15+ pytestmark = pytest .mark .filterwarnings (
16+ "ignore:Exception ignored.*MemoryObject.*Stream:pytest.PytestUnraisableExceptionWarning"
17+ )
18+
1219
1320@pytest .mark .anyio
1421async def test_client_get_task_success ():
Original file line number Diff line number Diff line change 1818from mcp .types import Tool
1919from tests .test_helpers import wait_for_server
2020
21+ # Mark all tests in this module to ignore memory stream cleanup warnings
22+ # These occur with task group cancellation in SSE transport's connect_sse
23+ pytestmark = pytest .mark .filterwarnings (
24+ "ignore:Exception ignored.*MemoryObject.*Stream:pytest.PytestUnraisableExceptionWarning"
25+ )
26+
2127logger = logging .getLogger (__name__ )
2228SERVER_NAME = "test_sse_security_server"
2329
You can’t perform that action at this time.
0 commit comments