Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 5b27e6f64b481be0fda0996456482eb56e12f2b5 1 parent 8fe0386
@akaariai akaariai authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/regressiontests/queries/tests.py
View
2  tests/regressiontests/queries/tests.py
@@ -806,7 +806,7 @@ def test_ticket9411(self):
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
Please sign in to comment.
Something went wrong with that request. Please try again.