summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-10-27 21:09:37 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-10-27 21:09:37 (GMT)
commit7041b995cd474740b5681e6f514a7db7c2ab35f3 (patch)
tree9928d0ce87eac85b0acd1b79539c8613b33b75a4
parentacf1754bf3b8eb8e67e9aa6e6d181e6ac49f7778 (diff)
parent4d9f31846af79252b2837e9b89c16ebbff90aaa2 (diff)
downloadcpython-7041b995cd474740b5681e6f514a7db7c2ab35f3.zip
cpython-7041b995cd474740b5681e6f514a7db7c2ab35f3.tar.gz
cpython-7041b995cd474740b5681e6f514a7db7c2ab35f3.tar.bz2
merge #15889: make regrtest --start succeed in more cases.
Patch by Chris Jerdonek.
-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 1d1a695..c342d43 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: