Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4de701b

Browse files
committed
regrtest.py: Fix typo in the usage of the faulthandler module
1 parent c7bfe0e commit 4de701b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/test/regrtest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,13 +454,13 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
454454
# join it with the saved CWD so it ends up where the user expects.
455455
testdir = os.path.join(support.SAVEDCWD, a)
456456
elif o == '--timeout':
457-
if hasattr(faulthandler, 'dump_tracebacks_later'):
457+
if hasattr(faulthandler, 'dump_traceback_later'):
458458
timeout = float(a)
459459
if timeout <= 0:
460460
timeout = None
461461
else:
462462
print("Warning: The timeout option requires "
463-
"faulthandler.dump_tracebacks_later")
463+
"faulthandler.dump_traceback_later")
464464
timeout = None
465465
elif o == '--wait':
466466
input("Press any key to continue...")
@@ -904,7 +904,7 @@ def runtest(test, verbose, quiet,
904904
support.use_resources = use_resources
905905
use_timeout = (timeout is not None)
906906
if use_timeout:
907-
faulthandler.dump_tracebacks_later(timeout, exit=True)
907+
faulthandler.dump_traceback_later(timeout, exit=True)
908908
try:
909909
support.match_tests = match_tests
910910
if failfast:

0 commit comments

Comments
 (0)