summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-03-05 18:26:17 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-03-05 18:26:17 (GMT)
commit25a404520da6c2560690e457404ea36f4aaa9344 (patch)
tree1148a86f226fa7edf326180cac3e94558ce4481f /Lib/test/test_capi.py
parent884f0585a40d2e3203ee0512aa2f5a39ce660556 (diff)
downloadcpython-25a404520da6c2560690e457404ea36f4aaa9344.zip
cpython-25a404520da6c2560690e457404ea36f4aaa9344.tar.gz
cpython-25a404520da6c2560690e457404ea36f4aaa9344.tar.bz2
#11732: add a new suppress_crash_popup() context manager to test.support.
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r--Lib/test/test_capi.py3
1 files changed, 2 insertions, 1 deletions
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 @@ class CAPITest(unittest.TestCase):
@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,