aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_pagination.py
diff options
context:
space:
mode:
authorTom Christie2015-01-16 20:30:46 +0000
committerTom Christie2015-01-16 20:30:46 +0000
commit86d2774cf30351fd4174e97501532056ed0d8f95 (patch)
treef36aecf23dfe09aceba53c218350e9c2032263fe /tests/test_pagination.py
parent8b0f25aa0a91cb7b56f9ce4dde4330fe5daaad9b (diff)
downloaddjango-rest-framework-86d2774cf30351fd4174e97501532056ed0d8f95.tar.bz2
Fix compat issues
Diffstat (limited to 'tests/test_pagination.py')
-rw-r--r--tests/test_pagination.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_pagination.py b/tests/test_pagination.py
index b3436b35..7cc92347 100644
--- a/tests/test_pagination.py
+++ b/tests/test_pagination.py
@@ -117,7 +117,7 @@ class TestPaginationDisabledIntegration:
request = factory.get('/', {'page': 2})
response = self.view(request)
assert response.status_code == status.HTTP_200_OK
- assert response.data == range(1, 101)
+ assert response.data == list(range(1, 101))
class TestDeprecatedStylePagination:
@@ -268,7 +268,7 @@ class TestLimitOffset:
self.queryset = range(1, 101)
def paginate_queryset(self, request):
- return self.pagination.paginate_queryset(self.queryset, request)
+ return list(self.pagination.paginate_queryset(self.queryset, request))
def get_paginated_content(self, queryset):
response = self.pagination.get_paginated_response(queryset)