Skip to content

Commit ce9291d

Browse files
committed
Tweaked the coverage line ignore patterns.
- Legacy-Id: 13880
1 parent 52f0e08 commit ce9291d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,10 @@ def skip_unreadable_post(record):
496496
# These are code line regex patterns
497497
TEST_CODE_COVERAGE_EXCLUDE_LINES = [
498498
"coverage: *ignore",
499-
"debug\.",
500-
"def .*debug"
499+
"debug",
501500
"unreachable\([^)]*\)",
502501
"if settings.DEBUG",
502+
"if settings.TEST_CODE_COVERAGE_CHECKER",
503503
"if __name__ == .__main__.:",
504504
]
505505

0 commit comments

Comments
 (0)