diff --git a/.coveragerc b/.coveragerc index f71b6b1a281..67b953445b6 100644 --- a/.coveragerc +++ b/.coveragerc @@ -6,9 +6,11 @@ exclude_lines = # Have to re-enable the standard pragma: pragma: no cover - # Don't complain if non-runnable code isn't run: + # Don't complain if non-runnable code isn't run if 0: if __name__ == .__main__.: + # Don't complain about code that shouldn't run + assert False # Don't complain about debug code if DEBUG: