[New-bugs-announce] [issue15889] regrtest --start option raises AttributeError in many scenarios

Chris Jerdonek report at bugs.python.org
Sun Sep 9 14:20:19 CEST 2012

New submission from Chris Jerdonek:

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>
  File ".../Lib/test/regrtest.py", line 562, in main
    del tests[:tests.index(start)]
AttributeError: 'NoneType' object has no attribute 'index'

Patch attached.

components: Tests
files: issue-regrtest-start-1.patch
keywords: easy, patch
messages: 170099
nosy: cjerdonek, ezio.melotti, michael.foord, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: regrtest --start option raises AttributeError in many scenarios
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file27151/issue-regrtest-start-1.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list