]> granicus.if.org Git - python/commitdiff
Issue13726 - Fix the ambiguous -S flag in regrtest. It is -o/--slow for printing...
authorSenthil Kumaran <senthil@uthcode.com>
Sat, 14 Jan 2012 10:26:27 +0000 (18:26 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Sat, 14 Jan 2012 10:26:27 +0000 (18:26 +0800)
Lib/test/regrtest.py
Misc/NEWS

index c3d2a2b1e2d39b56a11035c9452ff29d1b92ac16..0b93b523a05c375720670714307e007d191e4fa9 100755 (executable)
@@ -28,7 +28,7 @@ Verbosity
 -W/--verbose3   -- display test output on failure
 -d/--debug      -- print traceback for failed tests
 -q/--quiet      -- no output unless one or more tests fail
--S/--slow       -- print the slowest 10 tests
+-o/--slow       -- print the slowest 10 tests
    --header     -- print header with interpreter info
 
 Selecting tests
@@ -312,7 +312,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
             start = a
         elif o in ('-s', '--single'):
             single = True
-        elif o in ('-S', '--slow'):
+        elif o in ('-o', '--slow'):
             print_slow = True
         elif o in ('-r', '--randomize'):
             randomize = True
index 8e95abb6183e2ebc92115d797b478d827288b973..073417d74387125e1d2981e3ac55988686b9f5fb 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -97,6 +97,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #13726: Fix the ambiguous -S flag in regrtest. It is -o/--slow for slow
+  tests.
+
 - Issue #12364: Fix a hang in concurrent.futures.ProcessPoolExecutor.
   The hang would occur when retrieving the result of a scheduled future after
   the executor had been shut down.