From 63dee96cc7a3c929e16f88f2039812490b4b02b2 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 31 Dec 2014 09:19:04 -0500 Subject: [PATCH] Fixed test from refs #23758. --- tests/queries/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, {