Skip to content

The agent that grows with you

test(gateway): drop source-reading guard test from #71671 salvage

teknium10f554ce19ea8
diff --git a/contributors/emails/[email protected] b/contributors/emails/[email protected]
new file mode 100644
index 00000000000..e2eb89a005f
--- /dev/null
+++ b/contributors/emails/[email protected]
@@ -0,0 +1 @@
+hereicq
diff --git a/tests/gateway/test_71671_faulthandler_no_stderr.py b/tests/gateway/test_71671_faulthandler_no_stderr.py
index a01e14e1ee5..7548ef54852 100644
--- a/tests/gateway/test_71671_faulthandler_no_stderr.py
+++ b/tests/gateway/test_71671_faulthandler_no_stderr.py
@@ -3,7 +3,6 @@
from __future__ import annotations
import faulthandler
-import os
import sys
import pytest
@@ -33,15 +32,3 @@ def test_faulthandler_enable_falls_back_when_stderr_is_none(tmp_path):
sys.stderr = real_stderr
if was_enabled:
faulthandler.enable()
-
-
-def test_gateway_run_keeps_faulthandler_guard():
- src = os.path.join(
- os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))),
- "gateway", "run.py",
- )
- with open(src, encoding="utf-8") as f:
- text = f.read()
- assert "try:\n faulthandler.enable()\n except (RuntimeError, ValueError, OSError):" in text, (
- "gateway/run.py must keep the try/except guard around faulthandler.enable() (see #71671)"
- )