summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-06-24 23:41:26 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-06-24 23:41:26 -0400
commit1dc236eaeaa3530f64ae48a863cf469a2f578348 (patch)
tree501c5ce0bbe954420b5d9ebfaec8511693acb875 /test
parentfb6e6e13ccd059a6bfe7998e43a56fbeb3d5864f (diff)
downloadpython-coveragepy-git-1dc236eaeaa3530f64ae48a863cf469a2f578348.tar.gz
A seemingly minor change makes all the difference. The nose plugin cover.py excludes reporting on any module imported when coverage started. It imports coverage, then records the list of modules imported. With the coverage.collector import in the constructor, coverage.collector wasn't imported when the snapshot was taken, so coverage.collector appeared in the nose output. By moving the import to module scope, it will be imported early enough to be skipped. Fixes issue #8.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions