Merge pull request #676 from hugovk/__main__

Exclude non-runnable code from coverage
This commit is contained in:
wiredfool 2014-05-30 08:48:56 -07:00
commit 6bb3b155d9

11
.coveragerc Normal file
View File

@ -0,0 +1,11 @@
# .coveragerc to control coverage.py
[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:
if 0:
if __name__ == .__main__.: