diff --git a/tests/queries/tests.py b/tests/queries/tests.py index f39c18426e..aed122a7c1 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -2504,7 +2504,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(