coverage: Don't require coverage in six.PY2/PY3 branches.

This commit is contained in:
Tim Abbott 2017-03-04 22:51:35 -08:00
parent 5ee33e59b8
commit ff9f827c9a
2 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,9 @@ exclude_lines =
if False:
# Don't require coverage for base class NotImplementedErrors
raise NotImplementedError()
# Don't require coverage for Python 2/3 variations; it's impossible to cover on both
if six.PY3:
if six.PY2:
[run]
omit =

View File

@ -67,7 +67,7 @@ def unescape(s):
# type: (Text) -> (Text)
if six.PY2:
return html_parser.HTMLParser().unescape(s)
else:
elif six.PY3:
return html.unescape(s)
def list_of_tlds():