#11732: add a new suppress_crash_popup() context manager to test.support.
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index 65778be..c0c8a12 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -44,7 +44,8 @@
@unittest.skipUnless(threading, 'Threading required for this test.')
def test_no_FatalError_infinite_loop(self):
- p = subprocess.Popen([sys.executable, "-c",
+ with support.suppress_crash_popup():
+ p = subprocess.Popen([sys.executable, "-c",
'import _testcapi;'
'_testcapi.crash_no_current_thread()'],
stdout=subprocess.PIPE,