diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-05 18:26:17 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-05 18:26:17 (GMT) |
commit | 25a404520da6c2560690e457404ea36f4aaa9344 (patch) | |
tree | 1148a86f226fa7edf326180cac3e94558ce4481f /Lib/test/test_capi.py | |
parent | 884f0585a40d2e3203ee0512aa2f5a39ce660556 (diff) | |
download | cpython-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.py | 3 |
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, |