From dcd915fcab3841aa3b59122476c128ae3cb9e53c Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Wed, 29 May 2013 15:38:52 -0400 Subject: [PATCH] Fixed a failure on Python 3 introduced by 5939864616d56cf949f0bca348a8e05230b62fe0. Refs #15653. --- tests/admin_changelist/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/admin_changelist/tests.py b/tests/admin_changelist/tests.py index a69cffd7515..38b78faaf4a 100644 --- a/tests/admin_changelist/tests.py +++ b/tests/admin_changelist/tests.py @@ -581,7 +581,7 @@ class ChangeListTests(TestCase): for page_num, objects_count, expected_page_range in [ (0, per_page, []), - (0, per_page * 2, range(2)), + (0, per_page * 2, list(range(2))), (5, per_page * 11, list(range(11))), (5, per_page * 12, [0, 1, 2, 3, 4, 5, 6, 7, 8, '.', 10, 11]), (6, per_page * 12, [0, 1, '.', 3, 4, 5, 6, 7, 8, 9, 10, 11]), @@ -597,9 +597,9 @@ class ChangeListTests(TestCase): cl.get_results(request) real_page_range = pagination(cl)['page_range'] - self.assertEqual( + self.assertListEqual( expected_page_range, - real_page_range, + list(real_page_range), )