summaryrefslogtreecommitdiff
path: root/tests/generic_inline_admin/tests.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-03-22 21:08:59 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-03-22 21:12:58 +0100
commit232181d1c5307d9af5fc292682661e91439a9289 (patch)
tree707f74fc790b2d6a3d57c410107223db78814342 /tests/generic_inline_admin/tests.py
parent74b34676468f2cbf0e5e996cca6f83fabe7a3f6d (diff)
Advanced deprecation warnings for 1.8.
Diffstat (limited to 'tests/generic_inline_admin/tests.py')
-rw-r--r--tests/generic_inline_admin/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/generic_inline_admin/tests.py b/tests/generic_inline_admin/tests.py
index b223c98298..3dcc4db768 100644
--- a/tests/generic_inline_admin/tests.py
+++ b/tests/generic_inline_admin/tests.py
@@ -9,6 +9,7 @@ from django.contrib.contenttypes.forms import generic_inlineformset_factory
from django.forms.formsets import DEFAULT_MAX_NUM
from django.forms.models import ModelForm
from django.test import TestCase, override_settings
+from django.utils.deprecation import RemovedInDjango19Warning
# local test models
from .admin import MediaInline, MediaPermanentInline
@@ -376,7 +377,7 @@ class GenericInlineModelAdminTest(TestCase):
# Verify that the deprecation warning was triggered when get_formsets was called
# This verifies that we called that method.
self.assertEqual(len(w), 1)
- self.assertTrue(issubclass(w[0].category, PendingDeprecationWarning))
+ self.assertTrue(issubclass(w[0].category, RemovedInDjango19Warning))
class EpisodeAdmin(admin.ModelAdmin):
inlines = [