diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-09-06 08:07:20 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-09-10 12:01:00 +0200 |
commit | 81993b47eaac3cea1ebbc610a3a6b824f5195523 (patch) | |
tree | d91ce178d33a03546c034eb3d9f20dca45044f9f /tests/pagination | |
parent | cb2be9d5d57c34a70f0c549b780183f8c73aec4b (diff) | |
download | django-81993b47eaac3cea1ebbc610a3a6b824f5195523.tar.gz |
Refs #29703 -- Removed QuerySetPaginator alias per deprecation timeline.
Diffstat (limited to 'tests/pagination')
-rw-r--r-- | tests/pagination/tests.py | 9 |
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): """ |