From 837fc2d8cdfefce375697d95e241836c7be12696 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 31 Dec 2014 09:49:03 -0500 Subject: [PATCH] Fixed a queries test on Python 2 broken after importing six.moves.range(). --- tests/queries/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(