summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-30 23:31:06 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-30 23:31:06 (GMT)
commit024e37adccd9f0d879b014da28b02d04f0866f8c (patch)
tree9ca8e6548244610dd235876a87f639a1942647d4 /Lib/test/regrtest.py
parentd85456279f129e19a3f4c8ba0b3d05f5bdbfca1d (diff)
downloadcpython-024e37adccd9f0d879b014da28b02d04f0866f8c.zip
cpython-024e37adccd9f0d879b014da28b02d04f0866f8c.tar.gz
cpython-024e37adccd9f0d879b014da28b02d04f0866f8c.tar.bz2
Issue #11393: Add the new faulthandler module
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index f6cf0a7..a5a50c2 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -157,6 +157,7 @@ option '-uall,-gui'.
"""
import builtins
+import faulthandler
import getopt
import json
import os
@@ -490,6 +491,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
next_single_test = alltests[alltests.index(selected[0])+1]
except IndexError:
next_single_test = None
+ selected = ['test_faulthandler']
# Remove all the tests that precede start if it's set.
if start:
try:
@@ -1551,6 +1553,9 @@ def _make_temp_dir_for_build(TEMPDIR):
return TEMPDIR, TESTCWD
if __name__ == '__main__':
+ # Display the Python traceback on segfault and division by zero
+ faulthandler.enable()
+
# Remove regrtest.py's own directory from the module search path. Despite
# the elimination of implicit relative imports, this is still needed to
# ensure that submodules of the test package do not inappropriately appear