From 062ce508b0edcb3a2e801d7959e08207bd8d2a1e Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 15 Jun 2015 10:37:14 -0400 Subject: [1.8.x] Fixed flake8 warnings on Python 3. Backport of 47fcbe506c04019a12e16221843e25a52249b1ab from master --- tests/model_fields/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/model_fields') diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py index e04c518a93..9fe905dfc1 100644 --- a/tests/model_fields/tests.py +++ b/tests/model_fields/tests.py @@ -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) -- cgit v1.3