Ticket #15016: 15016_messages_test_isolation.diff

File 15016_messages_test_isolation.diff, 1.0 KB (added by Gabriel Hurley, 14 years ago)
  • django/contrib/messages/tests/base.py

     
    5858        self._message_storage = settings.MESSAGE_STORAGE
    5959        settings.MESSAGE_STORAGE = '%s.%s' % (self.storage_class.__module__,
    6060                                              self.storage_class.__name__)
     61        self.old_TEMPLATE_DIRS = settings.TEMPLATE_DIRS
     62        settings.TEMPLATE_DIRS = ()
    6163        self.save_warnings_state()
    6264        warnings.filterwarnings('ignore', category=DeprecationWarning,
    6365                                module='django.contrib.auth.models')
     
    7173           self._template_context_processors
    7274        settings.INSTALLED_APPS = self._installed_apps
    7375        settings.MESSAGE_STORAGE = self._message_storage
     76        settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS
    7477        self.restore_warnings_state()
    7578
    7679    def restore_setting(self, setting):
Back to Top