mirror of
https://github.com/django/django.git
synced 2025-08-30 23:37:50 +00:00
Fixed flake8 warnings on Python 3.
This commit is contained in:
parent
ccfb5c7408
commit
47fcbe506c
7 changed files with 17 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue