Added a code coverage exception pattern.

- Legacy-Id: 13878
This commit is contained in:
Henrik Levkowetz 2017-07-13 15:38:15 +00:00
parent 263551d3b7
commit e0c59bace0

View file

@ -497,6 +497,7 @@ TEST_CODE_COVERAGE_EXCLUDE_FILES = [
TEST_CODE_COVERAGE_EXCLUDE_LINES = [
"coverage: *ignore",
"debug\.",
"def .*debug"
"unreachable\([^)]*\)",
"if settings.DEBUG",
"if __name__ == .__main__.:",