We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82f254b commit 9ce04f9Copy full SHA for 9ce04f9
tests/server/test_session_tasks.py
@@ -12,6 +12,13 @@
12
from mcp.shared.memory import create_client_server_memory_streams
13
from mcp.shared.message import SessionMessage
14
15
+# Mark all tests in this module to ignore memory stream cleanup warnings
16
+# These occur with tg.cancel_scope.cancel() pattern, same as SDK's own
17
+# create_connected_server_and_client_session in src/mcp/shared/memory.py
18
+pytestmark = pytest.mark.filterwarnings(
19
+ "ignore:Exception ignored.*MemoryObject.*Stream:pytest.PytestUnraisableExceptionWarning"
20
+)
21
+
22
23
@pytest.mark.anyio
24
async def test_get_task_success_with_task_store():
0 commit comments