Ticket #15016: 15016_messages_test_isolation.diff
File 15016_messages_test_isolation.diff, 1.0 KB (added by , 14 years ago) |
---|
-
django/contrib/messages/tests/base.py
58 58 self._message_storage = settings.MESSAGE_STORAGE 59 59 settings.MESSAGE_STORAGE = '%s.%s' % (self.storage_class.__module__, 60 60 self.storage_class.__name__) 61 self.old_TEMPLATE_DIRS = settings.TEMPLATE_DIRS 62 settings.TEMPLATE_DIRS = () 61 63 self.save_warnings_state() 62 64 warnings.filterwarnings('ignore', category=DeprecationWarning, 63 65 module='django.contrib.auth.models') … … 71 73 self._template_context_processors 72 74 settings.INSTALLED_APPS = self._installed_apps 73 75 settings.MESSAGE_STORAGE = self._message_storage 76 settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS 74 77 self.restore_warnings_state() 75 78 76 79 def restore_setting(self, setting):