nose-devs/nose — Issue #327: undetected test error produces incorrect coverage report 
Author: jpellerin
Created: 2011-12-14 16:08:00+00:00
State: open

What steps will reproduce the problem?

run the attached file:

nosetests --with-cover --cover-erase attachment.py

Name Stmts Exec Cover Missing
-------------------------------------------------
bug-nose-coverage 16 13 81% 25-26, 37
----------------------------------------------------------------------

which is incorrect - all lines are covered by the doctests

Set WANT_BUG to False, and run again:

Name Stmts Exec Cover Missing
-------------------------------------------------
bug-nose-coverage 16 16 100%
----------------------------------------------------------------------
Ran 1 test in 0.012s

which is what I expected in the first place.

I'm using current packages from debian unstable. (nose 0.10.4)

What seems to be happening is an infinite recursion in __getattr__
(presumably caused by something trying to get to the new 'sewn' before it
exists). This is silently terminated and the program continues, but with
coverage tracing turned off, so subsequent accesses are not reported, and
no error is signalled.

Apologies if this is more a coverage.py issue; I wasn't sure where to
report it.

Google Code Info:
Issue #: 252
Author: jk.la...@gmail.com
Created On: 2009-04-20T19:41:58.000Z
Closed On: