Skip to content

Commit

Permalink
Ignore lines for test coverage in case of '#pragma: no cover', if it …
Browse files Browse the repository at this point in the history
…is not implemented or abstract

See e.g. nedbat/coveragepy#1131
  • Loading branch information
1kastner committed Jan 8, 2022
1 parent c4f754b commit d56b115
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ omit =
conflowgen/demo/
docs/conf.py
setup.py

[report]
exclude_lines =
pragma: no cover
@abstract
@abc.abstract
raise NotImplementedError

0 comments on commit d56b115

Please sign in to comment.