mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 02:36:17 +03:00
Merge pull request #676 from hugovk/__main__
Exclude non-runnable code from coverage
This commit is contained in:
commit
6bb3b155d9
11
.coveragerc
Normal file
11
.coveragerc
Normal 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__.:
|
Loading…
Reference in New Issue
Block a user