Wed Sep 27 21:33:39 2006
Ticket #94 (Closed: fixed)
--doctest-extension and NOSE_DOCTEST_EXTENSION conflict
| Priority: | normal | Reporter: | ianb@colorstudy.com |
|---|---|---|---|
| Severity: | normal | Assigned to: | jpellerin |
| Component: | nose | Status: | closed |
| Version: | 0.9 | Resolution: | fixed |
| Milestone: | 0.9.1 | Keywords: |
Description by ianb@colorstudy.com:
If you define both the environmental variable and give the command-line variable, you get:
Traceback (most recent call last):
File "/usr/local/bin/nosetests", line 7, in ?
sys.exit(
File "/usr/local/lib/python2.4/site-packages/nose-0.9.0-py2.4.egg/nose/core.py", line 438, in main
return sys.exit(not run(*arg, **kw))
File "/usr/local/lib/python2.4/site-packages/nose-0.9.0-py2.4.egg/nose/core.py", line 446, in run
result = TestProgram(*arg, **kw).success
File "/usr/local/lib/python2.4/site-packages/nose-0.9.0-py2.4.egg/nose/core.py", line 199, in __init__
self.parseArgs(argv, env)
File "/usr/local/lib/python2.4/site-packages/nose-0.9.0-py2.4.egg/nose/core.py", line 206, in parseArgs
self.conf = configure(argv, env)
File "/usr/local/lib/python2.4/site-packages/nose-0.9.0-py2.4.egg/nose/core.py", line 322, in configure
options, args = parser.parse_args(argv)
File "/usr/lib/python2.4/optparse.py", line 1278, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python2.4/optparse.py", line 1318, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib/python2.4/optparse.py", line 1393, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib/python2.4/optparse.py", line 710, in process
return self.take_action(
File "/usr/lib/python2.4/optparse.py", line 723, in take_action
values.ensure_value(dest, []).append(value)
AttributeError: 'str' object has no attribute 'append'
Changelog
Mon Oct 9 18:03:54 2006: Modified by jpellerin
- milestone set to 0.9.1
- version set to 0.9
- status changed from new to assigned
Tue Oct 10 16:52:26 2006: Modified by jpellerin
- resolution set to fixed
- status changed from assigned to closed

Fixed in [102]. --doctest-extension settings on the command line will now be appended to any specified in the environment, instead of blowing up. Thanks for the bug reports.