1
0
mirror of https://github.com/django/django.git synced 2025-10-28 16:16:12 +00:00

Revert "[1.7.x] Fixed #23088 -- Used six range type in Paginator.page_range."

This reverts commit ce95ab8f02.

It caused some backwards compatibility concerns (refs #23140).
This commit is contained in:
Tim Graham
2014-08-01 10:14:28 -04:00
parent e02d82155a
commit ee0208108b
2 changed files with 1 additions and 8 deletions

View File

@@ -232,13 +232,6 @@ class PaginationTests(unittest.TestCase):
self.assertEqual(page2.previous_page_number(), 1)
self.assertIsNone(page2.next_page_number())
def test_page_range_type(self):
"""
Ticket #23088: Paginator.page_range is of inconsistent type in Py2/Py3
"""
paginator = Paginator([1, 2, 3], 2)
self.assertEqual(type(paginator.page_range), six.moves.range)
class ModelPaginationTests(TestCase):
"""