diff options
| author | Gael Pasgrimaud <gael@gawel.org> | 2013-02-22 11:53:47 +0100 |
|---|---|---|
| committer | Gael Pasgrimaud <gael@gawel.org> | 2013-02-22 11:53:47 +0100 |
| commit | 5660506cd260da61bf2bc6f661f22148a3373623 (patch) | |
| tree | f68f708bb7bf786c312e05456c423325bfc91659 /webtest/compat.py | |
| parent | 4519c52260e91354f5c535a8dedfa06af3d26360 (diff) | |
| download | webtest-5660506cd260da61bf2bc6f661f22148a3373623.tar.gz | |
add some pragma no cover for the compat module
Diffstat (limited to 'webtest/compat.py')
| -rw-r--r-- | webtest/compat.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webtest/compat.py b/webtest/compat.py index 1845bc3..bb7405a 100644 --- a/webtest/compat.py +++ b/webtest/compat.py @@ -15,13 +15,13 @@ def to_bytes(value, charset='latin1'): return value -if PY3: +if PY3: # pragma: no cover from html.entities import name2codepoint from urllib.parse import urlencode from urllib.parse import splittype from urllib.parse import splithost import urllib.parse as urlparse -else: +else: # pragma: no cover from htmlentitydefs import name2codepoint # noqa from urllib import splittype # noqa from urllib import splithost # noqa @@ -37,5 +37,5 @@ def print_stderr(value): try: from collections import OrderedDict -except ImportError: +except ImportError: # pragma: no cover from ordereddict import OrderedDict # noqa |
