Fixed a queries test on Python 2 broken after importing six.moves.range().

This commit is contained in:
Tim Graham 2014-12-31 09:49:03 -05:00
parent 09bce0b2cb
commit 837fc2d8cd
1 changed files with 1 additions and 1 deletions

View File

@ -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(