nose coverage throws AttributeError and freezes

Bug #1179151 reported by Kasper Dupont
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nose (Ubuntu)
New
Undecided
Unassigned

Bug Description

After adding --with-coverage to NOSE_ARGS I get this exception from ./manage.py test

Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python2.7/dist-packages/nose/plugins/multiprocess.py", line 625, in runner
    keyboardCaught, shouldStop, loaderClass, resultClass, config)
  File "/usr/lib/python2.7/dist-packages/nose/plugins/multiprocess.py", line 642, in __runner
    config.plugins.begin()
  File "/usr/lib/python2.7/dist-packages/nose/plugins/manager.py", line 94, in __call__
    return self.call(*arg, **kw)
  File "/usr/lib/python2.7/dist-packages/nose/plugins/manager.py", line 162, in simple
    result = meth(*arg, **kw)
  File "/usr/lib/python2.7/dist-packages/nose/plugins/cover.py", line 155, in begin
    if self.coverErase:
AttributeError: 'Coverage' object has no attribute 'coverErase'

I see this exception once from each process, and then the test run freezes (presumably because the main process is waiting for some of the dead child processes to do some work).

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-nose 1.1.2-3
ProcVersionSignature: Ubuntu 3.2.0-41.66-generic 3.2.42
Uname: Linux 3.2.0-41-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu17.2
Architecture: i386
Date: Sun May 12 09:48:02 2013
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: nose
UpgradeStatus: Upgraded to precise on 2012-05-08 (368 days ago)

Revision history for this message
Kasper Dupont (ubuntu-launchpad-feb) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.