From c073eca69a749cd579c8d429357d53498ba1f294 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 30 Nov 2016 06:22:54 -0500 Subject: Test excluded lines in the html report --- tests/test_html.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/test_html.py') diff --git a/tests/test_html.py b/tests/test_html.py index d89d92c7..b1f813ed 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -708,7 +708,7 @@ class HtmlGoldTests(CoverageGoldTest): with change_dir("src"): # pylint: disable=import-error - cov = coverage.Coverage(branch=True) + cov = coverage.Coverage(config_file="partial.ini") cov.start() import partial # pragma: nested cov.stop() # pragma: nested @@ -722,6 +722,8 @@ class HtmlGoldTests(CoverageGoldTest): '

', # The "if 0" and "if 1" statements are optimized away. '

', + # The "raise AssertionError" is excluded by regex in the .ini. + '

', ) contains( "out/partial/index.html", -- cgit v1.2.1