From 210d0489c5daad56b806f8165f9fe09fb3c2a019 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 26 Feb 2014 22:48:20 +0100 Subject: Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks Anssi Kääriäinen for the idea and Simon Charette for the review. --- tests/modeladmin/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/modeladmin') diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py index 205e1dc8cf..1f4fd4e86d 100644 --- a/tests/modeladmin/tests.py +++ b/tests/modeladmin/tests.py @@ -16,6 +16,7 @@ from django.core.exceptions import ImproperlyConfigured from django.forms.models import BaseModelFormSet from django.forms.widgets import Select from django.test import TestCase +from django.utils.deprecation import RemovedInDjango19Warning from .models import Band, Concert, ValidationTestModel, ValidationTestInlineModel @@ -1479,7 +1480,7 @@ class CustomModelAdminTests(CheckTestCase): def test_deprecation(self): "Deprecated Custom Validator definitions still work with the check framework." with warnings.catch_warnings(): - warnings.simplefilter("ignore", category=PendingDeprecationWarning) + warnings.simplefilter("ignore", category=RemovedInDjango19Warning) class CustomValidator(ModelAdminValidator): def validate_me(self, model_admin, model): -- cgit v1.3