Skip to content
Browse files

[py3] Fixed comparison of list and range()

A test compared list directly against a range(). This is py3
incompatible. Fixed by using list(range()).
  • Loading branch information...
1 parent 8fe0386 commit 5b27e6f64b481be0fda0996456482eb56e12f2b5 @akaariai akaariai committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/regressiontests/queries/
2 tests/regressiontests/queries/
@@ -806,7 +806,7 @@ def test_ticket9411(self):
qs = Tag.objects.values_list('id', flat=True).order_by('id')
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

0 comments on commit 5b27e6f

Please sign in to comment.
Something went wrong with that request. Please try again.