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

Skip to content

Commit bcfe56d

Browse files
committed
Issue13726 - Fix the ambiguous -S flag in regrtest. It is -o/--slow for printing the 10 slowest test.
1 parent a931463 commit bcfe56d

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Lib/test/regrtest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
-W/--verbose3 -- display test output on failure
2929
-d/--debug -- print traceback for failed tests
3030
-q/--quiet -- no output unless one or more tests fail
31-
-S/--slow -- print the slowest 10 tests
31+
-o/--slow -- print the slowest 10 tests
3232
--header -- print header with interpreter info
3333
3434
Selecting tests
@@ -312,7 +312,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
312312
start = a
313313
elif o in ('-s', '--single'):
314314
single = True
315-
elif o in ('-S', '--slow'):
315+
elif o in ('-o', '--slow'):
316316
print_slow = True
317317
elif o in ('-r', '--randomize'):
318318
randomize = True

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ Core and Builtins
9797
Library
9898
-------
9999

100+
- Issue #13726: Fix the ambiguous -S flag in regrtest. It is -o/--slow for slow
101+
tests.
102+
100103
- Issue #12364: Fix a hang in concurrent.futures.ProcessPoolExecutor.
101104
The hang would occur when retrieving the result of a scheduled future after
102105
the executor had been shut down.

0 commit comments

Comments
 (0)