[Python-checkins] cpython (3.3): regrtest.py: Fix typo in the usage of the faulthandler module

victor.stinner python-checkins at python.org
Mon Jun 17 20:28:25 CEST 2013


http://hg.python.org/cpython/rev/732fb15e856d
changeset: 84187:732fb15e856d
branch: 3.3
parent: 84182:a48f65bac986
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Jun 17 20:27:10 2013 +0200
summary:
 regrtest.py: Fix typo in the usage of the faulthandler module
files:
 Lib/test/regrtest.py | 6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -454,13 +454,13 @@
 # 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 @@
 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:
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /