mirror of
https://github.com/django/django.git
synced 2024-12-25 02:26:12 +00:00
[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.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
|
||||
|
Loading…
Reference in New Issue
Block a user