Skip to content

Commit

Permalink
Exclude debug code and defensive code from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
irl committed Oct 20, 2016
1 parent b0b6a5b commit 22e1960
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,18 @@
concurrency = multiprocessing
include =
pathspider/*
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain about missing debug-only code:
def __repr__
if self\.debug

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:

0 comments on commit 22e1960

Please sign in to comment.