Add config file for coverage.py to exclude some common things: http://nedbatchelder.com/code/coverage/config.html

This commit is contained in:
hugovk 2014-05-26 19:19:27 +03:00
parent 24cb7bf3df
commit e6908401d4

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__.: