[py3] Fixed comparison of list and range()

A test compared list directly against a range(). This is py3
incompatible. Fixed by using list(range()).
This commit is contained in:
Anssi Kääriäinen 2012-08-14 15:28:55 +03:00
parent 8fe03865f7
commit 5b27e6f64b
1 changed files with 1 additions and 1 deletions

View File

@ -806,7 +806,7 @@ class Queries1Tests(BaseQuerysetTest):
qs = Tag.objects.values_list('id', flat=True).order_by('id')
qs.query.bump_prefix()
first = qs[0]
self.assertEqual(list(qs), range(first, first+5))
self.assertEqual(list(qs), list(range(first, first+5)))
def test_ticket8439(self):
# Complex combinations of conjunctions, disjunctions and nullable