summaryrefslogtreecommitdiff
path: root/tests/model_fields
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-06-15 10:37:14 -0400
committerTim Graham <timograham@gmail.com>2015-06-15 11:27:09 -0400
commit47fcbe506c04019a12e16221843e25a52249b1ab (patch)
tree0ad523fef8859042a09b3de8dc3977ae48c23701 /tests/model_fields
parentccfb5c74083ac565c66a2d0cfe11e60e7d1c8337 (diff)
Fixed flake8 warnings on Python 3.
Diffstat (limited to 'tests/model_fields')
-rw-r--r--tests/model_fields/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py
index 939ba269d8..353c15f491 100644
--- a/tests/model_fields/tests.py
+++ b/tests/model_fields/tests.py
@@ -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)