summaryrefslogtreecommitdiff
path: root/tests/pagination
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2019-09-06 08:07:20 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-09-10 12:01:00 +0200
commit81993b47eaac3cea1ebbc610a3a6b824f5195523 (patch)
treed91ce178d33a03546c034eb3d9f20dca45044f9f /tests/pagination
parentcb2be9d5d57c34a70f0c549b780183f8c73aec4b (diff)
downloaddjango-81993b47eaac3cea1ebbc610a3a6b824f5195523.tar.gz
Refs #29703 -- Removed QuerySetPaginator alias per deprecation timeline.
Diffstat (limited to 'tests/pagination')
-rw-r--r--tests/pagination/tests.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/pagination/tests.py b/tests/pagination/tests.py
index 95310d26bd..0a807a66c3 100644
--- a/tests/pagination/tests.py
+++ b/tests/pagination/tests.py
@@ -2,11 +2,10 @@ import warnings
from datetime import datetime
from django.core.paginator import (
- EmptyPage, InvalidPage, PageNotAnInteger, Paginator, QuerySetPaginator,
+ EmptyPage, InvalidPage, PageNotAnInteger, Paginator,
UnorderedObjectListWarning,
)
from django.test import SimpleTestCase, TestCase
-from django.utils.deprecation import RemovedInDjango31Warning
from .custom import ValidAdjacentNumsPaginator
from .models import Article
@@ -298,12 +297,6 @@ class PaginationTests(SimpleTestCase):
with self.assertRaises(EmptyPage):
paginator.get_page(1)
- def test_querysetpaginator_deprecation(self):
- msg = 'The QuerySetPaginator alias of Paginator is deprecated.'
- with self.assertWarnsMessage(RemovedInDjango31Warning, msg) as cm:
- QuerySetPaginator([], 1)
- self.assertEqual(cm.filename, __file__)
-
class ModelPaginationTests(TestCase):
"""