[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:
parent
8fe03865f7
commit
5b27e6f64b
|
@ -806,7 +806,7 @@ class Queries1Tests(BaseQuerysetTest):
|
||||||
qs = Tag.objects.values_list('id', flat=True).order_by('id')
|
qs = Tag.objects.values_list('id', flat=True).order_by('id')
|
||||||
qs.query.bump_prefix()
|
qs.query.bump_prefix()
|
||||||
first = qs[0]
|
first = qs[0]
|
||||||
self.assertEqual(list(qs), range(first, first+5))
|
self.assertEqual(list(qs), list(range(first, first+5)))
|
||||||
|
|
||||||
def test_ticket8439(self):
|
def test_ticket8439(self):
|
||||||
# Complex combinations of conjunctions, disjunctions and nullable
|
# Complex combinations of conjunctions, disjunctions and nullable
|
||||||
|
|
Loading…
Reference in New Issue