Fixed a queries test on Python 2 broken after importing six.moves.range().
This commit is contained in:
parent
09bce0b2cb
commit
837fc2d8cd
|
@ -2504,7 +2504,7 @@ class ConditionalTests(BaseQuerysetTest):
|
||||||
# Test that the "in" lookup works with lists of 1000 items or more.
|
# Test that the "in" lookup works with lists of 1000 items or more.
|
||||||
# The numbers amount is picked to force three different IN batches
|
# The numbers amount is picked to force three different IN batches
|
||||||
# for Oracle, yet to be less than 2100 parameter limit for MSSQL.
|
# 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.all().delete()
|
||||||
Number.objects.bulk_create(Number(num=num) for num in numbers)
|
Number.objects.bulk_create(Number(num=num) for num in numbers)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
|
|
Loading…
Reference in New Issue