Issue #18948: improve SuppressCoreFiles to include Windows crash popup suppression, and use it in more tests.

Patch by Valerie Lambert and Zachary Ware.
This commit is contained in:
Antoine Pitrou 2013-10-08 23:04:32 +02:00
parent 3ebbb04af2
commit 77e904e6a6
8 changed files with 87 additions and 94 deletions

View file

@ -839,7 +839,8 @@ class SubinterpThreadingTests(BaseTestCase):
_testcapi.run_in_subinterp(%r)
""" % (subinterp_code,)
rc, out, err = assert_python_failure("-c", script)
with test.support.SuppressCrashReport():
rc, out, err = assert_python_failure("-c", script)
self.assertIn("Fatal Python error: Py_EndInterpreter: "
"not the last thread", err.decode())