diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-30 06:22:54 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-30 06:22:54 -0500 |
commit | c073eca69a749cd579c8d429357d53498ba1f294 (patch) | |
tree | 23eb76a8f3b8fe7dc4500df1320d07acdcc86316 /tests/test_html.py | |
parent | 2a75eaddc624e8807d087cb8831d8d13150fb4b9 (diff) | |
download | python-coveragepy-git-c073eca69a749cd579c8d429357d53498ba1f294.tar.gz |
Test excluded lines in the html report
Diffstat (limited to 'tests/test_html.py')
-rw-r--r-- | tests/test_html.py | 4 |
1 files changed, 3 insertions, 1 deletions
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): '<p id="t14" class="stm run hide_run">', # The "if 0" and "if 1" statements are optimized away. '<p id="t17" class="pln">', + # The "raise AssertionError" is excluded by regex in the .ini. + '<p id="t24" class="exc">', ) contains( "out/partial/index.html", |