summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-12-31 09:19:04 -0500
committerTim Graham <timograham@gmail.com>2014-12-31 09:19:04 -0500
commit63dee96cc7a3c929e16f88f2039812490b4b02b2 (patch)
treeb8bbcc96b9e393fe6dd8c4cee5d28dba03e6f093
parent41fc1c0b5eac156e200a10233c7c9210a1c0fed8 (diff)
Fixed test from refs #23758.
-rw-r--r--tests/queries/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py
index f2c4abf5f3..f39c18426e 100644
--- a/tests/queries/tests.py
+++ b/tests/queries/tests.py
@@ -17,6 +17,7 @@ from django.test import TestCase, skipUnlessDBFeature
from django.test.utils import CaptureQueriesContext
from django.utils.deprecation import RemovedInDjango19Warning
from django.utils import six
+from django.utils.six.moves import range
from .models import (
Annotation, Article, Author, Celebrity, Child, Cover, Detail, DumbCategory,
@@ -393,7 +394,7 @@ class Queries1Tests(BaseQuerysetTest):
def test_reasonable_number_of_subq_aliases(self):
x = Tag.objects.filter(pk=1)
- for _ in xrange(20):
+ for _ in range(20):
x = Tag.objects.filter(pk__in=x)
self.assertEqual(
x.query.subq_aliases, {