coverage: Don't require test coverage for __unicode__ methods.

These are usually just used for manual debugging, and so aren't super
important to make sure we have tests for always.
This commit is contained in:
Tim Abbott 2017-03-14 17:07:04 -07:00
parent 7c6f0033ed
commit 85fe53f5e3
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ exclude_lines =
# Don't require coverage for Python 2/3 variations; it's impossible to cover on both
if six.PY3:
if six.PY2:
# Don't require coverage for __unicode__ statements just used for printing
def __unicode__[(]self[)]:
[run]
omit =