Updated a test to reflect the fact that "import *" isn't used in URLconfs anymore (refs #14675).

This commit is contained in:
Tim Graham 2018-12-31 10:24:28 -05:00 committed by GitHub
parent 100b8dd163
commit 1136d57f01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -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):

View File

@ -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