Closed
Description
Originally reported by shauncutts (Bitbucket: shauncutts, GitHub: Unknown)
say we have test1.py such as:
#!python
# from peak.util.addons import AddOn
def foo():
print "bar"
foo()
Now, if I run coverage on this
#!shell
> coverage -e -x test.py
> coverage -r test.py
Name Stmts Exec Cover
---------------------------
test 3 3 100%
it works fine. However, with the first "include" line uncommented, it breaks:
#!shell
> coverage -e -x test.py
> coverage -r test.py
Name Stmts Exec Cover
---------------------------
test 4 1 25%
If coverage is being run by nosetests, then it reports 0 coverage for all modules after the first one with an "addons" include.
-- Shaun
PS -- Great tool, by the way. I'd try to do more diagnosis if I weren't in the middle of a coding grind.