From f53a005254c81fadcea58f4dd5022544c05d8001 Mon Sep 17 00:00:00 2001 From: yucheng Date: Thu, 24 Sep 2026 12:52:31 +0000 Subject: [PATCH] test(integration): isolate the http.server child interpreter in the JWKS pause cell (LIT-8429) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../mcp/test_mcp_jwt_signer_jwks_allowlist.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/integration/mcp/test_mcp_jwt_signer_jwks_allowlist.py b/tests/integration/mcp/test_mcp_jwt_signer_jwks_allowlist.py index 2d1d48a7a95..4d75ba60d71 100644 --- a/tests/integration/mcp/test_mcp_jwt_signer_jwks_allowlist.py +++ b/tests/integration/mcp/test_mcp_jwt_signer_jwks_allowlist.py @@ -235,7 +235,17 @@ def test_signer_jwks_pause_rejects_then_recovers(gateway: Gateway, tmp_path: Pat ) token: Final = jwt.encode(_claims(), private_key, algorithm="RS256", headers={"kid": "rsa"}) server: Final = subprocess.Popen( - [sys.executable, "-m", "http.server", str(port), "--bind", "127.0.0.1", "--directory", str(tmp_path / "jwks")], + [ + sys.executable, + "-I", + "-m", + "http.server", + str(port), + "--bind", + "127.0.0.1", + "--directory", + str(tmp_path / "jwks"), + ], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, )