diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-03-09 21:37:05 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-03-09 22:10:49 +0100 |
| commit | c564277937a1f0b78b2c2b701e6381319d9685c2 (patch) | |
| tree | b2281d0780f0d25044db8f92b6ff15068afd809a /tests/modeladmin | |
| parent | 0e52b2863bb3286d5958c9f1289db47151261f90 (diff) | |
Fixed #22237 -- Removed some warnings in the test suite
Thanks Aymeric Augustin for the report.
Diffstat (limited to 'tests/modeladmin')
| -rw-r--r-- | tests/modeladmin/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py index 1f4fd4e86d..9cf54c8b9f 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 import six from django.utils.deprecation import RemovedInDjango19Warning from .models import Band, Concert, ValidationTestModel, ValidationTestInlineModel @@ -565,7 +566,7 @@ class CheckTestCase(TestCase): self.assertEqual(error.hint, hint) self.assertEqual(error.obj, invalid_obj) self.assertEqual(error.id, id) - self.assertRegexpMatches(error.msg, msg) + six.assertRegex(self, error.msg, msg) def assertIsValid(self, model_admin, model): errors = model_admin.check(model=model) |
