Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed the admin_changelist tests for python3.

  • Loading branch information...
commit 0c257f5a232bdf251f6f9de542c702ab76ad1be3 1 parent 62c3f63
Alex Gaynor authored Alex Gaynor committed
4  tests/regressiontests/admin_changelist/tests.py
@@ -317,7 +317,7 @@ def test_pagination(self):
317 317
                 m.list_editable, m)
318 318
         self.assertEqual(cl.query_set.count(), 60)
319 319
         self.assertEqual(cl.paginator.count, 60)
320  
-        self.assertEqual(cl.paginator.page_range, [1, 2, 3, 4, 5, 6])
  320
+        self.assertEqual(list(cl.paginator.page_range), [1, 2, 3, 4, 5, 6])
321 321
 
322 322
         # Test custom queryset
323 323
         m = FilteredChildAdmin(Child, admin.site)
@@ -327,7 +327,7 @@ def test_pagination(self):
327 327
                 m.list_editable, m)
328 328
         self.assertEqual(cl.query_set.count(), 30)
329 329
         self.assertEqual(cl.paginator.count, 30)
330  
-        self.assertEqual(cl.paginator.page_range, [1, 2, 3])
  330
+        self.assertEqual(list(cl.paginator.page_range), [1, 2, 3])
331 331
 
332 332
     def test_computed_list_display_localization(self):
333 333
         """

0 notes on commit 0c257f5

Please sign in to comment.
Something went wrong with that request. Please try again.