nose-devs/nose — Issue #212: AttributeError on Coverage
Author: jpellerin
Created: 2011-12-14 16:03:51+00:00
State: open

I am adding proper tests to pyrad, which has never had any so far. With
0.10.0b1 and coverage 2.77 installed I get an error when using --with-coverage:

[snow;..n/self/pyrad/trunk]-45> nosetests --with-coverage pyrad
Traceback (most recent call last):
File "/usr/local/bin/nosetests", line 7, in ?
sys.exit(
File
"/usr/local/lib/python2.4/site-packages/nose-0.10.0b1-py2.4.egg/nose/core
.py", line 188, in __init__
argv=argv, testRunner=testRunner, testLoader=testLoader)
File "/usr/lib/python2.4/unittest.py", line 758, in __init__
self.parseArgs(argv)
File
"/usr/local/lib/python2.4/site-packages/nose-0.10.0b1-py2.4.egg/nose/core
.py", line 203, in parseArgs
self.config.configure(argv, doc=TestProgram.__doc__)
File
"/usr/local/lib/python2.4/site-packages/nose-0.10.0b1-py2.4.egg/nose/conf
ig.py", line 170, in configure
self.plugins.configure(options, self)
File
"/usr/local/lib/python2.4/site-packages/nose-0.10.0b1-py2.4.egg/nose/plug
ins/manager.py", line 201, in configure
cfg(options, config)
File
"/usr/local/lib/python2.4/site-packages/nose-0.10.0b1-py2.4.egg/nose/plug
ins/manager.py", line 79, in __call__
return self.call(*arg, **kw)
File
"/usr/local/lib/python2.4/site-packages/nose-0.10.0b1-py2.4.egg/nose/plug
ins/manager.py", line 135, in simple
result = meth(*arg, **kw)
File
"/usr/local/lib/python2.4/site-packages/nose-0.10.0b1-py2.4.egg/nose/plug
ins/cover.py", line 66, in configure
import coverage
File "/usr/local/bin/coverage.py", line 5, in ?
pkg_resources.run_script('coverage==2.77', 'coverage.py')
File
"/usr/local/lib/python2.4/site-packages/setuptools-0.6c6-py2.4.egg/pkg_re
sources.py", line 448, in run_script
self.require(requires)[0].run_script(script_name, ns)
File
"/usr/local/lib/python2.4/site-packages/setuptools-0.6c6-py2.4.egg/pkg_re
sources.py", line 1166, in run_script
execfile(script_filename, namespace, namespace)
File
"/usr/local/lib/python2.4/site-packages/coverage-2.77-py2.4.egg/EGG-INFO/
scripts/coverage.py", line 8, in ?
coverage.the_coverage.command_line(sys.argv[1:])
AttributeError: 'module' object has no attribute 'the_coverage'

Google Code Info:
Issue #: 85
Author: wichert@gmail.com
Created On: 2007-09-02T13:36:57.000Z
Closed On: 2007-09-02T15:34:57.000Z