mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
#11732: add a new suppress_crash_popup() context manager to test.support.
This commit is contained in:
parent
884f0585a4
commit
25a404520d
5 changed files with 40 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue