Skip to content

Commit

Permalink
Coverage: Don't complain about code that shouldn't run: assert False
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 12, 2023
1 parent 556dd1e commit 883a151
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ exclude_lines =
# Have to re-enable the standard pragma:
pragma: no cover

# Don't complain if non-runnable code isn't run:
# Don't complain if non-runnable code isn't run
if 0:
if __name__ == .__main__.:
# Don't complain about code that shouldn't run
assert False
# Don't complain about debug code
if DEBUG:

Expand Down

0 comments on commit 883a151

Please sign in to comment.