nose-devs/nose — Issue #467: Using an ErrorClassPlugin results in Exception in addError
Author: jpellerin
Created: 2011-12-14 16:12:07+00:00
State: open

Created new ErrorClassPlugin, however ErrorClassPlugin's own addError seems to be missing the capt arg, resulting in this traceback whenever the new Error is raised:

Traceback (most recent call last):
File "/usr/local/bin/nosetests", line 8, in
load_entry_point('nose==1.1.2', 'console_scripts', 'nosetests')()
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/core.py", line 118, in __init__
**extra_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/main.py", line 95, in __init__
self.runTests()
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/core.py", line 197, in runTests
result = self.testRunner.run(self.test)
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/core.py", line 61, in run
test(result)
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 176, in __call__
return self.run(*arg, **kw)
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 223, in run
test(orig)
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 176, in __call__
return self.run(*arg, **kw)
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 223, in run
test(orig)
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 176, in __call__
return self.run(*arg, **kw)
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 223, in run
test(orig)
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 45, in __call__
return self.run(*arg, **kwarg)
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 138, in run
result.addError(self, err)
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/proxy.py", line 134, in addError
plugins.addError(self.test, err)
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/manager.py", line 94, in __call__
return self.call(*arg, **kw)
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/manager.py", line 162, in simple
result = meth(*arg, **kw)
File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/manager.py", line 320, in addError
return self.plugin.addError(test.test, err, capt)
TypeError: addError() takes exactly 3 arguments (4 given)

What version of the product are you using? On what operating system?
1.1.2, Python 2.7, Mac OS X 10.7

Google Code Info:
Issue #: 477
Author: pettazz
Created On: 2011-12-05T01:52:27.000Z
Closed On: