Skip to content

Commit

Permalink
Coverage: Use exclude_also instead of exclude_lines
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 15, 2023
1 parent eaf2374 commit 699f2e0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma:
pragma: no cover

# Don't complain if non-runnable code isn't run:
exclude_also =
# Don't complain if non-runnable code isn't run
if 0:
if __name__ == .__main__.:
# Don't complain about code that shouldn't run
Expand Down

0 comments on commit 699f2e0

Please sign in to comment.