From 1136d57f01ce3e3efab44163ccd7b3b34ec4207f Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 31 Dec 2018 10:24:28 -0500 Subject: [PATCH] Updated a test to reflect the fact that "import *" isn't used in URLconfs anymore (refs #14675). --- tests/urlpatterns_reverse/tests.py | 2 +- .../{urls_without_full_import.py => urls_without_handlers.py} | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) rename tests/urlpatterns_reverse/{urls_without_full_import.py => urls_without_handlers.py} (68%) diff --git a/tests/urlpatterns_reverse/tests.py b/tests/urlpatterns_reverse/tests.py index ff3ec045fb4..61dbd208b7e 100644 --- a/tests/urlpatterns_reverse/tests.py +++ b/tests/urlpatterns_reverse/tests.py @@ -1064,7 +1064,7 @@ class ErrorHandlerResolutionTests(SimpleTestCase): self.assertEqual(self.callable_resolver.resolve_error_handler(code), handler) -@override_settings(ROOT_URLCONF='urlpatterns_reverse.urls_without_full_import') +@override_settings(ROOT_URLCONF='urlpatterns_reverse.urls_without_handlers') class DefaultErrorHandlerTests(SimpleTestCase): def test_default_handler(self): diff --git a/tests/urlpatterns_reverse/urls_without_full_import.py b/tests/urlpatterns_reverse/urls_without_handlers.py similarity index 68% rename from tests/urlpatterns_reverse/urls_without_full_import.py rename to tests/urlpatterns_reverse/urls_without_handlers.py index 5bbb0955e6a..4c248cd0d91 100644 --- a/tests/urlpatterns_reverse/urls_without_full_import.py +++ b/tests/urlpatterns_reverse/urls_without_handlers.py @@ -1,6 +1,4 @@ -# A URLs file that doesn't use the default -# from django.conf.urls import * -# import pattern. +# A URLconf that doesn't define any handlerXXX. from django.conf.urls import url from .views import bad_view, empty_view