classification
Title: regrtest --start option raises AttributeError in many scenarios
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.2, Python 3.3, Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: chris.jerdonek, ezio.melotti, michael.foord, pitrou, python-dev, r.david.murray
Priority: normal Keywords: easy, patch

Created on 2012-09-09 12:20 by chris.jerdonek, last changed 2012-10-27 21:11 by r.david.murray. This issue is now closed.

Files
File name Uploaded Description Edit
issue-regrtest-start-1.patch chris.jerdonek, 2012-09-09 12:20 review
Messages (4)
msg170099 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012-09-09 12:20
The --start option to regrtest raises an AttributeError in many scenarios.  For example, these both raise an error:

$ ./python.exe -m test --start test_random
$ ./python.exe -m test --start test_random test_binascii test_random

Traceback (most recent call last):
  File ".../Lib/runpy.py", line 160, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File ".../Lib/runpy.py", line 73, in _run_code
    exec(code, run_globals)
  File ".../Lib/test/__main__.py", line 13, in <module>
    regrtest.main()
  File ".../Lib/test/regrtest.py", line 562, in main
    del tests[:tests.index(start)]
AttributeError: 'NoneType' object has no attribute 'index'

Patch attached.
msg170100 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012-09-09 12:28
This issue also affects 3.2 (but not 2.7; there is no --start option in 2.7).
msg173977 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-10-27 21:10
New changeset f6d04f5cff31 by R David Murray in branch '3.2':
#15889: make regrtest --start succeed in more cases.
http://hg.python.org/cpython/rev/f6d04f5cff31

New changeset 19f205e3111c by R David Murray in branch '3.3':
merge #15889: make regrtest --start succeed in more cases.
http://hg.python.org/cpython/rev/19f205e3111c

New changeset f9bd7633316c by R David Murray in branch 'default':
merge #15889: make regrtest --start succeed in more cases.
http://hg.python.org/cpython/rev/f9bd7633316c
msg173978 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-10-27 21:11
Thanks, Chris.
History
Date User Action Args
2012-10-27 21:11:09r.david.murraysetstatus: open -> closed

versions: + Python 3.4
nosy: + r.david.murray

messages: + msg173978
resolution: fixed
stage: patch review -> resolved
2012-10-27 21:10:22python-devsetnosy: + python-dev
messages: + msg173977
2012-09-09 12:28:15chris.jerdoneksetmessages: + msg170100
versions: + Python 3.2
2012-09-09 12:20:18chris.jerdonekcreate