exogen/nose-achievements

Exception raised when using nosetests --with-coverage --with-achievements

Opened this issue · 0 comments

abyx commented

I've just pulled nose-achievements and reinstalled. Using nose 0.11.1 and python-coverage (2.85-1) package on ubuntu.
Whenever I run some tests with coverage I get the following error:

Traceback (most recent call last):
  File "/opt/python/bin/nosetests", line 8, in <module>
    load_entry_point('nose==0.11.1', 'console_scripts', 'nosetests')()
  File "/opt/python/lib/python2.6/site-packages/nose-0.11.1-py2.6.egg/nose/core.py", line 113, in __init__
    argv=argv, testRunner=testRunner, testLoader=testLoader)
  File "/opt/python/lib/python26.zip/unittest.py", line 817, in __init__
  File "/opt/python/lib/python2.6/site-packages/nose-0.11.1-py2.6.egg/nose/core.py", line 192, in runTests
    result = self.testRunner.run(self.test)
  File "/opt/python/lib/python2.6/site-packages/nose-0.11.1-py2.6.egg/nose/core.py", line 65, in run
    self.config.plugins.finalize(result)
  File "/opt/python/lib/python2.6/site-packages/nose-0.11.1-py2.6.egg/nose/plugins/manager.py", line 82, in __call__
    return self.call(*arg, **kw)
  File "/opt/python/lib/python2.6/site-packages/nose-0.11.1-py2.6.egg/nose/plugins/manager.py", line 150, in simple
    result = meth(*arg, **kw)
  File "build/bdist.linux-i686/egg/noseachievements/plugin.py", line 132, in finalize
  File "build/bdist.linux-i686/egg/noseachievements/achievements/builtin.py", line 245, in finalize
  File "/opt/python/lib/python2.6/site-packages/coverage.py", line 303, in __init__
    raise CoverageException("Only one coverage object allowed.")
coverage.CoverageException: Only one coverage object allowed.