1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

[1.8.x] Fixed flake8 warnings on Python 3.

Backport of 47fcbe506c from master
This commit is contained in:
Tim Graham
2015-06-15 10:37:14 -04:00
parent 53323a5c23
commit 062ce508b0
7 changed files with 17 additions and 12 deletions

View File

@@ -711,10 +711,11 @@ class PromiseTest(test.TestCase):
@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)