summaryrefslogtreecommitdiff
path: root/tests/model_forms
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-06-29 18:34:41 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-06-29 18:49:37 +0200
commitacd7b34aafe352ef604edcb73f75041c5cbba6b9 (patch)
treeeecb1df66a2070e9a357380fba89febd38c488f4 /tests/model_forms
parent8b9b8d3bda09eb1b447631182d06c6c5e51425f6 (diff)
Advanced deprecation warnings for Django 1.7.
Diffstat (limited to 'tests/model_forms')
-rw-r--r--tests/model_forms/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py
index 39be824798..2c3caef016 100644
--- a/tests/model_forms/tests.py
+++ b/tests/model_forms/tests.py
@@ -266,7 +266,7 @@ class ModelFormBaseTest(TestCase):
def test_missing_fields_attribute(self):
with warnings.catch_warnings(record=True) as w:
- warnings.simplefilter("always", PendingDeprecationWarning)
+ warnings.simplefilter("always", DeprecationWarning)
class MissingFieldsForm(forms.ModelForm):
class Meta:
@@ -276,7 +276,7 @@ class ModelFormBaseTest(TestCase):
# if a warning has been seen already, the catch_warnings won't
# have recorded it. The following line therefore will not work reliably:
- # self.assertEqual(w[0].category, PendingDeprecationWarning)
+ # self.assertEqual(w[0].category, DeprecationWarning)
# Until end of the deprecation cycle, should still create the
# form as before: