Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a failure on Python 3 introduced by 5939864.

Refs #15653.
  • Loading branch information...
commit dcd915fcab3841aa3b59122476c128ae3cb9e53c 1 parent d727518
@charettes charettes authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/admin_changelist/tests.py
View
6 tests/admin_changelist/tests.py
@@ -581,7 +581,7 @@ def test_pagination_page_range(self):
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 @@ def test_pagination_page_range(self):
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),
)
Please sign in to comment.
Something went wrong with that request. Please try again.