diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-10-14 12:08:22 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-10-14 12:08:22 -0400 |
commit | 0688836f584721250609748b03be0de0cea968b9 (patch) | |
tree | 8b8ddb425b3575e7216c68b4cd357b3d0b6cefc2 /tests/test_html.py | |
parent | 314d1f7d33d4bf6f292cf62e6a1e68b713828a29 (diff) | |
download | python-coveragepy-git-0688836f584721250609748b03be0de0cea968b9.tar.gz |
This test accidentally triggered our exclude regex during metacov
Diffstat (limited to 'tests/test_html.py')
-rw-r--r-- | tests/test_html.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_html.py b/tests/test_html.py index 1300f22b..77e068d0 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -887,7 +887,7 @@ assert len(math) == 18 def test_partial(self): self.make_file("partial.py", """\ # partial branches and excluded lines - a = 6 + a = 2 while "no peephole".upper(): # t4 break @@ -898,11 +898,11 @@ assert len(math) == 18 if 0: never_happen() - if 1: - a = 21 + if 13: + a = 14 - if a == 23: - raise AssertionError("Can't") + if a == 16: + raise ZeroDivisionError("17") """) self.make_file("partial.ini", """\ [run] @@ -910,7 +910,7 @@ assert len(math) == 18 [report] exclude_lines = - raise AssertionError + raise ZeroDivisionError """) cov = coverage.Coverage(config_file="partial.ini") @@ -924,7 +924,7 @@ assert len(math) == 18 '<p id="t7" class="run">', # The "if 0" and "if 1" statements are optimized away. '<p id="t10" class="pln">', - # The "raise AssertionError" is excluded by regex in the .ini. + # The "raise ZeroDivisionError" is excluded by regex in the .ini. '<p id="t17" class="exc show_exc">', ) contains( |