summaryrefslogtreecommitdiff
path: root/tests/generic_views/test_edit.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/generic_views/test_edit.py')
-rw-r--r--tests/generic_views/test_edit.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/generic_views/test_edit.py b/tests/generic_views/test_edit.py
index 84d18ebcb2..982d9e5778 100644
--- a/tests/generic_views/test_edit.py
+++ b/tests/generic_views/test_edit.py
@@ -146,7 +146,7 @@ class CreateViewTests(TestCase):
def test_create_view_all_fields(self):
with warnings.catch_warnings(record=True) as w:
- warnings.simplefilter("always", PendingDeprecationWarning)
+ warnings.simplefilter("always", DeprecationWarning)
class MyCreateView(CreateView):
model = Author
@@ -160,7 +160,7 @@ class CreateViewTests(TestCase):
def test_create_view_without_explicit_fields(self):
with warnings.catch_warnings(record=True) as w:
- warnings.simplefilter("always", PendingDeprecationWarning)
+ warnings.simplefilter("always", DeprecationWarning)
class MyCreateView(CreateView):
model = Author
@@ -171,7 +171,7 @@ class CreateViewTests(TestCase):
['name', 'slug'])
# but with a warning:
- self.assertEqual(w[0].category, PendingDeprecationWarning)
+ self.assertEqual(w[0].category, DeprecationWarning)
class UpdateViewTests(TestCase):