]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#15889: make regrtest --start succeed in more cases.
authorR David Murray <rdmurray@bitdance.com>
Sat, 27 Oct 2012 21:07:05 +0000 (17:07 -0400)
committerR David Murray <rdmurray@bitdance.com>
Sat, 27 Oct 2012 21:07:05 +0000 (17:07 -0400)
Patch by Chris Jerdonek.

Lib/test/regrtest.py

index 29f2bf042ca44bbcff0900b0e7d3dc84e95e01c8..e0985227dd29df5aea0a0197350a17844e3d8304 100755 (executable)
@@ -489,10 +489,10 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
             next_single_test = alltests[alltests.index(selected[0])+1]
         except IndexError:
             next_single_test = None
-    # Remove all the tests that precede start if it's set.
+    # Remove all the selected tests that precede start if it's set.
     if start:
         try:
-            del tests[:tests.index(start)]
+            del selected[:selected.index(start)]
         except ValueError:
             print("Couldn't find starting test (%s), using all tests" % start)
     if randomize: