Skip to content

coverage broken by peak.util.addons #13

Closed
@nedbat

Description

@nedbat

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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions