From c4c228fd7c7056ca4dc69391e16cc1832f9738a8 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 21 Nov 2009 08:38:26 -0500 Subject: Increase templite test coverage, and use the new branch awesomeness when coverage testing ourselves. --- test/coverage_coverage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/coverage_coverage.py') 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) -- cgit v1.2.1