Fixed flake8 warnings on Python 3.

This commit is contained in:
Tim Graham 2015-06-15 10:37:14 -04:00
parent ccfb5c7408
commit 47fcbe506c
7 changed files with 17 additions and 12 deletions

View file

@ -797,10 +797,11 @@ class PromiseTest(test.SimpleTestCase):
@unittest.skipIf(six.PY3, "Python 3 has no `long` type.")
def test_BigIntegerField(self):
lazy_func = lazy(lambda: long(9999999999999999999), long)
# NOQA: long undefined on PY3
lazy_func = lazy(lambda: long(9999999999999999999), long) # NOQA
self.assertIsInstance(
BigIntegerField().get_prep_value(lazy_func()),
long)
long) # NOQA
def test_BinaryField(self):
lazy_func = lazy(lambda: b'', bytes)