This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chris.jerdonek
Recipients chris.jerdonek, ezio.melotti, michael.foord, pitrou
Date 2012-09-09.12:20:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347193219.18.0.453057488599.issue15889@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-09-09 12:20:19chris.jerdoneksetrecipients: + chris.jerdonek, pitrou, ezio.melotti, michael.foord
2012-09-09 12:20:19chris.jerdoneksetmessageid: <1347193219.18.0.453057488599.issue15889@psf.upfronthosting.co.za>
2012-09-09 12:20:18chris.jerdoneklinkissue15889 messages
2012-09-09 12:20:18chris.jerdonekcreate