diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-06-17 18:27:10 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-06-17 18:27:10 (GMT) |
commit | 4de701b7280128a1c9a1a9d2cd5d5601ecf5129f (patch) | |
tree | acb1f2c010b27af65e9229714ba8069daedd967a /Lib/test/regrtest.py | |
parent | c7bfe0e42eb72d941a8a131e870aefabd4547015 (diff) | |
download | cpython-4de701b7280128a1c9a1a9d2cd5d5601ecf5129f.zip cpython-4de701b7280128a1c9a1a9d2cd5d5601ecf5129f.tar.gz cpython-4de701b7280128a1c9a1a9d2cd5d5601ecf5129f.tar.bz2 |
regrtest.py: Fix typo in the usage of the faulthandler module
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-x | Lib/test/regrtest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 636282e..7086c7c 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -454,13 +454,13 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, # join it with the saved CWD so it ends up where the user expects. testdir = os.path.join(support.SAVEDCWD, a) elif o == '--timeout': - if hasattr(faulthandler, 'dump_tracebacks_later'): + if hasattr(faulthandler, 'dump_traceback_later'): timeout = float(a) if timeout <= 0: timeout = None else: print("Warning: The timeout option requires " - "faulthandler.dump_tracebacks_later") + "faulthandler.dump_traceback_later") timeout = None elif o == '--wait': input("Press any key to continue...") @@ -904,7 +904,7 @@ def runtest(test, verbose, quiet, support.use_resources = use_resources use_timeout = (timeout is not None) if use_timeout: - faulthandler.dump_tracebacks_later(timeout, exit=True) + faulthandler.dump_traceback_later(timeout, exit=True) try: support.match_tests = match_tests if failfast: |