.coveragerc
[run]
branch = True
[report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__(self):
def __str__(self):
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if 0:
if False:
if __name__ == __main__:
unittest.main()
# Exclude dump methods
def to_JSON(self):
def to_XML
def _to_DOM(self):
ignore_errors = True