From 41decf2c4a6a0e18387bec52b57a2ab531535e99 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Sat, 30 May 2026 01:44:27 -0700 Subject: [PATCH] test(mcp): import os and pytest in test_mcp_stability The salvaged grandchild-reaping tests reference os.getpgid/os.killpg and pytest.mark/skip/importorskip directly, but the file only imported asyncio, signal, and unittest.mock. Add the missing imports so collection succeeds on current main. --- tests/tools/test_mcp_stability.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/tools/test_mcp_stability.py b/tests/tools/test_mcp_stability.py index 32e539c7a..2c3734274 100644 --- a/tests/tools/test_mcp_stability.py +++ b/tests/tools/test_mcp_stability.py @@ -1,9 +1,12 @@ """Tests for MCP stability fixes — event loop handler, PID tracking, shutdown robustness.""" import asyncio +import os import signal from unittest.mock import patch, MagicMock +import pytest + # ---------------------------------------------------------------------------