nose-devs/nose — Issue #323: [plugins] AttributeError: 'str' object has no attribute 'enabled'
Author: jpellerin
Created: 2011-12-14 16:07:49+00:00
State: open

What steps will reproduce the problem?
import nose
nose.main(plugins=['--verbose'])

What is the expected output? What do you see instead?
I expect nose running with specified plugins enabled.
Instead:
Traceback (most recent call last):
File "misc.py", line 181, in
nose.main(plugins=['--verbose'])
File
"/Library/Frameworks/Python.framework/Versions/4.0.30002/lib/python2.5/site-packages/nose-0.10.3.0001-py2.5.egg/nose/core.py",
line 219, in __init__
argv=argv, testRunner=testRunner, testLoader=testLoader)
File
"/Library/Frameworks/Python.framework/Versions/4.0.30002/lib/python2.5/unittest.py",
line 767, in __init__
self.parseArgs(argv)
File
"/Library/Frameworks/Python.framework/Versions/4.0.30002/lib/python2.5/site-packages/nose-0.10.3.0001-py2.5.egg/nose/core.py",
line 236, in parseArgs
self.config.configure(argv, doc=TestProgram.__doc__)
File
"/Library/Frameworks/Python.framework/Versions/4.0.30002/lib/python2.5/site-packages/nose-0.10.3.0001-py2.5.egg/nose/config.py",
line 294, in configure
self.plugins.configure(options, self)
File
"/Library/Frameworks/Python.framework/Versions/4.0.30002/lib/python2.5/site-packages/nose-0.10.3.0001-py2.5.egg/nose/plugins/manager.py",
line 250, in configure
enabled = [plug for plug in self._plugins if plug.enabled]
AttributeError: 'str' object has no attribute 'enabled'

What version of the product are you using? On what operating system?
In [2]: nose.__version__
Out[2]: '0.10.3'

$ uname -a
Darwin PiotrMBP.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24
17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386

Please provide any additional information below.

Google Code Info:
Issue #: 245
Author: piotr.byzia@gmail.com
Created On: 2009-03-26T11:31:31.000Z
Closed On: