cmheisel / nose-xcover

Fork of nose.plugins.cover that enables XML output (for use with Hudson, e.g.)
MIT License
52 stars 17 forks source link

AssertionError when using nose tip #6

Closed rsyring closed 13 years ago

rsyring commented 13 years ago

FYI, nose has some changes coming out to the cover plugin:

http://code.google.com/p/python-nose/issues/detail?id=264

Those changes break the nose-xcover plugin. I have a running test/cover environment, but when I upgrade to nose tip, I get the following error:

Traceback (most recent call last): File "/tmp/commonbwc_ta-jenkins-venv/bin/nosetests", line 8, in load_entry_point('nose==1.0.1.dev', 'console_scripts', 'nosetests')() File "/tmp/commonbwc_ta-jenkins-venv/lib/python2.6/site-packages/nose/core.py", line 118, in init _extra_args) File "/usr/lib/python2.6/unittest.py", line 817, in init self.runTests() File "/tmp/commonbwc_ta-jenkins-venv/lib/python2.6/site-packages/nose/core.py", line 197, in runTests result = self.testRunner.run(self.test) File "/tmp/commonbwc_ta-jenkins-venv/lib/python2.6/site-packages/nose/core.py", line 63, in run result.printErrors() File "/tmp/commonbwc_ta-jenkins-venv/lib/python2.6/site-packages/nose/result.py", line 110, in printErrors self.config.plugins.report(self.stream) File "/tmp/commonbwc_ta-jenkins-venv/lib/python2.6/site-packages/nose/plugins/manager.py", line 94, in call return self.call(_arg, _kw) File "/tmp/commonbwc_ta-jenkins-venv/lib/python2.6/site-packages/nose/plugins/manager.py", line 162, in simple result = meth(_arg, **kw) File "/tmp/commonbwc_ta-jenkins-venv/lib/python2.6/site-packages/nose/plugins/cover.py", line 165, in report self.coverInstance.stop() File "/tmp/commonbwc_ta-jenkins-venv/lib/python2.6/site-packages/coverage/control.py", line 357, in stop self.collector.stop() File "/tmp/commonbwc_ta-jenkins-venv/lib/python2.6/site-packages/coverage/collector.py", line 233, in stop assert self._collectors[-1] is self AssertionError

cmheisel commented 13 years ago

This should be resolved by the just released 1.0.6 version. Give it a shot and let me know if it didn't address the issue and I'll reopen.