mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.8.x] Fixed flake8 warnings on Python 3.
Backport of 47fcbe506c from master
			
			
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user