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 | 741cd92f2ef3e70619a6a30cd592cd9f54053db2 (patch) | |
tree | 51592c630722a0273ff2e1e564e52f2a12edc3ac /tests/test_html.py | |
parent | a364b5313a20a622fd2b37a36072e98e843784de (diff) | |
download | python-coveragepy-741cd92f2ef3e70619a6a30cd592cd9f54053db2.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 d89d92c..b1f813e 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", |