diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-21 08:38:26 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-21 08:38:26 -0500 |
commit | c4c228fd7c7056ca4dc69391e16cc1832f9738a8 (patch) | |
tree | f2a6d8528cf9f277f5f275a3cab6ad535baaee99 /test/coverage_coverage.py | |
parent | 002c59c122f5a72868c9a3835f692968eb689b0a (diff) | |
download | python-coveragepy-git-c4c228fd7c7056ca4dc69391e16cc1832f9738a8.tar.gz |
Increase templite test coverage, and use the new branch awesomeness when coverage testing ourselves.
Diffstat (limited to 'test/coverage_coverage.py')
-rw-r--r-- | test/coverage_coverage.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/coverage_coverage.py b/test/coverage_coverage.py index 1a5cc9c4..e1e7674f 100644 --- a/test/coverage_coverage.py +++ b/test/coverage_coverage.py @@ -8,7 +8,7 @@ HTML_DIR = "htmlcov" if os.path.exists(HTML_DIR): shutil.rmtree(HTML_DIR) -cov = coverage.coverage() +cov = coverage.coverage(branch=True) # Cheap trick: the coverage code itself is excluded from measurement, but if # we clobber the cover_prefix in the coverage object, we can defeat the # self-detection. @@ -40,5 +40,6 @@ cov.clear_exclude() cov.exclude("#pragma: no cover") cov.exclude("def __repr__") cov.exclude("if __name__ == .__main__.:") +cov.exclude("raise AssertionError") cov.html_report(directory=HTML_DIR, ignore_errors=True) |