From b5f0b3478dfcf0335f8ac2038d59f54b4a05f2a0 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 7 Dec 2016 17:42:31 -0500 Subject: Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase. --- tests/modeladmin/tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/modeladmin') diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py index 3ba497d100..ba75deff13 100644 --- a/tests/modeladmin/tests.py +++ b/tests/modeladmin/tests.py @@ -15,7 +15,6 @@ from django.core.checks import Error from django.forms.models import BaseModelFormSet from django.forms.widgets import Select from django.test import SimpleTestCase, TestCase -from django.utils import six from .models import ( Band, Concert, ValidationTestInlineModel, ValidationTestModel, @@ -645,7 +644,7 @@ class CheckTestCase(SimpleTestCase): self.assertEqual(error.hint, hint) self.assertEqual(error.obj, invalid_obj) self.assertEqual(error.id, id) - six.assertRegex(self, error.msg, msg) + self.assertRegex(error.msg, msg) def assertIsValid(self, model_admin, model): admin_obj = model_admin(model, AdminSite()) -- cgit v1.3