From: R David Murray Date: Sat, 27 Oct 2012 21:07:05 +0000 (-0400) Subject: #15889: make regrtest --start succeed in more cases. X-Git-Tag: v3.2.4rc1~404 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3bf78a21278784c5961144a0bc5f46336477c57;p=thirdparty%2FPython%2Fcpython.git #15889: make regrtest --start succeed in more cases. Patch by Chris Jerdonek. --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 29f2bf042ca4..e0985227dd29 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: