summaryrefslogtreecommitdiff
path: root/tests/deprecation
diff options
context:
space:
mode:
authorsaeedblanchette <saiidblanchettel@outlook.com>2022-02-18 21:22:50 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-21 06:23:41 +0100
commite559070a7a1aa70eaf97686da6e8116c3c7b08fd (patch)
treec2d6ddb3261d0a3511ab5defe1ae3115c4694b22 /tests/deprecation
parentf70a875cc05c46b3bfcc1637356081f0c5782bea (diff)
downloaddjango-e559070a7a1aa70eaf97686da6e8116c3c7b08fd.tar.gz
Fixed #33518 -- Added RemovedAfterNextVersionWarning.
Diffstat (limited to 'tests/deprecation')
-rw-r--r--tests/deprecation/tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/deprecation/tests.py b/tests/deprecation/tests.py
index eae217bfb3..b64691eb55 100644
--- a/tests/deprecation/tests.py
+++ b/tests/deprecation/tests.py
@@ -3,6 +3,7 @@ import warnings
from django.test import SimpleTestCase
from django.utils.deprecation import (
DeprecationInstanceCheck,
+ RemovedAfterNextVersionWarning,
RemovedInNextVersionWarning,
RenameMethodsBase,
)
@@ -161,6 +162,11 @@ class RenameMethodsTests(SimpleTestCase):
with self.assertWarnsMessage(DeprecationWarning, msg):
deprecated.old()
+ def test_removedafternextversionwarning_pending(self):
+ self.assertTrue(
+ issubclass(RemovedAfterNextVersionWarning, PendingDeprecationWarning)
+ )
+
class DeprecationInstanceCheckTest(SimpleTestCase):
def test_warning(self):