mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.7.x] Fixed a queries test on Python 2 broken after importing six.moves.range().
Backport of 837fc2d8cd from master
			
			
This commit is contained in:
		| @@ -2345,7 +2345,7 @@ class ConditionalTests(BaseQuerysetTest): | ||||
|         # Test that the "in" lookup works with lists of 1000 items or more. | ||||
|         # The numbers amount is picked to force three different IN batches | ||||
|         # for Oracle, yet to be less than 2100 parameter limit for MSSQL. | ||||
|         numbers = range(2050) | ||||
|         numbers = list(range(2050)) | ||||
|         Number.objects.all().delete() | ||||
|         Number.objects.bulk_create(Number(num=num) for num in numbers) | ||||
|         self.assertEqual( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user