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/farm/html/src | |
parent | 2a75eaddc624e8807d087cb8831d8d13150fb4b9 (diff) | |
download | python-coveragepy-git-c073eca69a749cd579c8d429357d53498ba1f294.tar.gz |
Test excluded lines in the html report
Diffstat (limited to 'tests/farm/html/src')
-rw-r--r-- | tests/farm/html/src/partial.ini | 9 | ||||
-rw-r--r-- | tests/farm/html/src/partial.py | 9 |
2 files changed, 15 insertions, 3 deletions
diff --git a/tests/farm/html/src/partial.ini b/tests/farm/html/src/partial.ini new file mode 100644 index 00000000..cdb241b5 --- /dev/null +++ b/tests/farm/html/src/partial.ini @@ -0,0 +1,9 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +[run] +branch = True + +[report] +exclude_lines = + raise AssertionError diff --git a/tests/farm/html/src/partial.py b/tests/farm/html/src/partial.py index 66dddacd..0f8fbe3c 100644 --- a/tests/farm/html/src/partial.py +++ b/tests/farm/html/src/partial.py @@ -1,9 +1,9 @@ # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt -# partial branches +# partial branches and excluded lines -a = 3 +a = 6 while True: break @@ -18,4 +18,7 @@ if 0: never_happen() if 1: - a = 13 + a = 21 + +if a == 23: + raise AssertionError("Can't") |