summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-10-27 21:07:05 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-10-27 21:07:05 (GMT)
commitc3bf78a21278784c5961144a0bc5f46336477c57 (patch)
tree1cc53355b13cbf1b57ed7d1d247d92ac69fec92b
parente5b1023ae2d5c99a98e68c2b997452551d07fa2f (diff)
downloadcpython-c3bf78a21278784c5961144a0bc5f46336477c57.zip
cpython-c3bf78a21278784c5961144a0bc5f46336477c57.tar.gz
cpython-c3bf78a21278784c5961144a0bc5f46336477c57.tar.bz2
#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 29f2bf0..e098522 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -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: