diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-10-27 21:08:37 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-10-27 21:08:37 (GMT) |
commit | 4d9f31846af79252b2837e9b89c16ebbff90aaa2 (patch) | |
tree | f92d997a7fd79e3cd5a994b88db7686698f499ca /Lib | |
parent | 971ba4c8170040d284ab8cf5331adcfb226156eb (diff) | |
parent | c3bf78a21278784c5961144a0bc5f46336477c57 (diff) | |
download | cpython-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-x | Lib/test/regrtest.py | 4 |
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: |