summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-10-27 21:08:37 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-10-27 21:08:37 (GMT)
commit4d9f31846af79252b2837e9b89c16ebbff90aaa2 (patch)
treef92d997a7fd79e3cd5a994b88db7686698f499ca /Lib
parent971ba4c8170040d284ab8cf5331adcfb226156eb (diff)
parentc3bf78a21278784c5961144a0bc5f46336477c57 (diff)
downloadcpython-4d9f31846af79252b2837e9b89c16ebbff90aaa2.zip
cpython-4d9f31846af79252b2837e9b89c16ebbff90aaa2.tar.gz
cpython-4d9f31846af79252b2837e9b89c16ebbff90aaa2.tar.bz2
merge #15889: make regrtest --start succeed in more cases.
Patch by Chris Jerdonek.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/regrtest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index e977e42..8f3b689 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -556,10 +556,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: