diff --git a/django/contrib/messages/tests/base.py b/django/contrib/messages/tests/base.py
index 8d04532..8c4df96 100644
a
|
b
|
|
1 | 1 | from django import http |
2 | | from django.conf import settings |
| 2 | from django.conf import settings, urls as urlhandlers |
3 | 3 | from django.contrib.messages import constants, utils, get_level, set_level |
4 | 4 | from django.contrib.messages.api import MessageFailure |
5 | 5 | from django.contrib.messages.storage import default_storage, base |
… |
… |
class BaseTest(TestCase):
|
56 | 56 | |
57 | 57 | def setUp(self): |
58 | 58 | self.settings_override = override_settings_tags( |
59 | | TEMPLATE_DIRS = (), |
| 59 | TEMPLATE_LOADERS = (), |
60 | 60 | MESSAGE_TAGS = '', |
61 | 61 | MESSAGE_STORAGE = '%s.%s' % (self.storage_class.__module__, |
62 | 62 | self.storage_class.__name__), |
63 | 63 | ) |
64 | 64 | self.settings_override.enable() |
| 65 | self.old_handler500 = urlhandlers.handler500 |
| 66 | urlhandlers.handler500 = 'django.views.defaults.server_error' |
65 | 67 | |
66 | 68 | def tearDown(self): |
67 | 69 | self.settings_override.disable() |
| 70 | urlhandlers.handler500 = self.old_handler500 |
68 | 71 | |
69 | 72 | def get_request(self): |
70 | 73 | return http.HttpRequest() |