nose-devs/nose — Issue #28: Nose Keeps Bailing out due to ContextSuite has no attribute id (caught in addError)
Author: jpellerin
Created: 2011-12-14 15:55:55+00:00
State: open

I am running nose as follows:
--------------------
nosetests -s -v -c /home/nose.cfg.regressions --tc-file=/home/myyaml.yaml
--tc-format=yaml --with-xunit --with-path=/home/src
--xunit-file=/home/07-09-09_10:03:04-results.xml . 2>&1
>>/home/07-09-09_10:03:04/nosetests.out
-------------------

Initially everything seems fine and nose is running through my tests,
however, it KEEPS bailing out at the exact same spot and I do NOT know how
to resolve this. I believe it is the XML plugin. Any help or workaround
would be GREATLY appreciated.

Traceback (most recent call last):
File "/usr/bin/nosetests", line 8, in
load_entry_point('nose==0.11.1', 'console_scripts', 'nosetests')()
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/core.py", line
113, in __init__
argv=argv, testRunner=testRunner, testLoader=testLoader)
File "/usr/lib/python2.5/unittest.py", line 768, in __init__
self.runTests()
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/core.py", line
192, in runTests
result = self.testRunner.run(self.test)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/core.py", line
61, in run
test(result)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/suite.py",
line 154, in __call__
return self.run(*arg, **kw)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/suite.py",
line 197, in run
test(orig)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/suite.py",
line 154, in __call__
return self.run(*arg, **kw)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/suite.py",
line 197, in run
test(orig)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/suite.py",
line 154, in __call__
return self.run(*arg, **kw)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/suite.py",
line 197, in run
test(orig)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/suite.py",
line 154, in __call__
return self.run(*arg, **kw)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/suite.py",
line 197, in run
test(orig)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/suite.py",
line 154, in __call__
return self.run(*arg, **kw)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/suite.py",
line 187, in run
result.addError(self, self._exc_info())
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/proxy.py",
line 121, in addError
plugins.addError(self.test, err)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/plugins/manager.py",
line 82, in __call__
return self.call(*arg, **kw)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/plugins/manager.py",
line 150, in simple
result = meth(*arg, **kw)
File
"/usr/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/plugins/xunit.py",
line 165, in addError
id = test.id()
AttributeError: 'ContextSuite' object has no attribute 'id'
========================================

Google Code Info:
Issue #: 279
Author: mccague....@gmail.com
Created On: 2009-07-13T13:50:53.000Z
Closed On: 2009-07-25T19:25:38.000Z