Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed the admin_changelist tests for python3.

  • Loading branch information...
commit 0c257f5a232bdf251f6f9de542c702ab76ad1be3 1 parent 62c3f63
@alex alex authored Alex Gaynor committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/regressiontests/admin_changelist/tests.py
View
4 tests/regressiontests/admin_changelist/tests.py
@@ -317,7 +317,7 @@ def test_pagination(self):
m.list_editable, m)
self.assertEqual(cl.query_set.count(), 60)
self.assertEqual(cl.paginator.count, 60)
- self.assertEqual(cl.paginator.page_range, [1, 2, 3, 4, 5, 6])
+ self.assertEqual(list(cl.paginator.page_range), [1, 2, 3, 4, 5, 6])
# Test custom queryset
m = FilteredChildAdmin(Child, admin.site)
@@ -327,7 +327,7 @@ def test_pagination(self):
m.list_editable, m)
self.assertEqual(cl.query_set.count(), 30)
self.assertEqual(cl.paginator.count, 30)
- self.assertEqual(cl.paginator.page_range, [1, 2, 3])
+ self.assertEqual(list(cl.paginator.page_range), [1, 2, 3])
def test_computed_list_display_localization(self):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.