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/check_framework/test_urls.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/check_framework') diff --git a/tests/check_framework/test_urls.py b/tests/check_framework/test_urls.py index 3418af8ac0..159c41e7a9 100644 --- a/tests/check_framework/test_urls.py +++ b/tests/check_framework/test_urls.py @@ -4,7 +4,6 @@ from django.core.checks.urls import ( ) from django.test import SimpleTestCase from django.test.utils import override_settings -from django.utils import six class CheckUrlsTest(SimpleTestCase): @@ -35,7 +34,7 @@ class CheckUrlsTest(SimpleTestCase): result = check_url_config(None) warning = result[0] self.assertEqual(warning.id, 'urls.E004') - six.assertRegex(self, warning.msg, ( + self.assertRegex(warning.msg, ( r"^Your URL pattern \('\^tuple/\$', at 0x(\w+)>\) is " r"invalid. Ensure that urlpatterns is a list of url\(\) instances.$" )) -- cgit v1.3