Make flake8 for Python 3 shut up

This commit is contained in:
Markus Unterwaditzer 2014-04-30 01:04:08 +02:00
parent a2f9a38e02
commit a1063b0e06
3 changed files with 4 additions and 4 deletions

View file

@ -42,8 +42,8 @@ class StorageTests(object):
hrefs.sort()
assert hrefs == sorted(s.list())
for href, etag in hrefs:
assert isinstance(href, (str, unicode))
assert isinstance(etag, (str, unicode))
assert isinstance(href, (text_type, bytes))
assert isinstance(etag, (text_type, bytes))
assert s.has(href)
item, etag2 = s.get(href)
assert etag == etag2

View file

@ -38,7 +38,7 @@ def test_parse_options():
# Yes, we want a very strong typecheck here, because we actually have
# to differentiate between bool and int, and in Python 2, bool is a
# subclass of int.
assert type(a[key]) is type(expected[key])
assert type(a[key]) is type(expected[key]) # flake8: noqa
def test_get_password_from_netrc(monkeypatch):

View file

@ -22,7 +22,7 @@ PY2 = sys.version_info[0] == 2
if PY2:
import urlparse
text_type = unicode
text_type = unicode # flake8: noqa
iteritems = lambda x: x.iteritems()
itervalues = lambda x: x.itervalues()
else: