From 0c257f5a232bdf251f6f9de542c702ab76ad1be3 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 15 Aug 2012 23:09:01 -0400 Subject: [PATCH] Fixed the admin_changelist tests for python3. --- tests/regressiontests/admin_changelist/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regressiontests/admin_changelist/tests.py b/tests/regressiontests/admin_changelist/tests.py index 1ed963aaf29..be88c9a1619 100644 --- a/tests/regressiontests/admin_changelist/tests.py +++ b/tests/regressiontests/admin_changelist/tests.py @@ -317,7 +317,7 @@ class ChangeListTests(TestCase): 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 @@ class ChangeListTests(TestCase): 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): """