mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
[soc2009/multidb] Merged up to trunk r11864.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11866 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -10,6 +10,7 @@ from django.test.utils import ContextList
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.core.exceptions import SuspiciousOperation
|
||||
from django.template import TemplateDoesNotExist, TemplateSyntaxError, Context
|
||||
from django.template import loader
|
||||
|
||||
class AssertContainsTests(TestCase):
|
||||
def setUp(self):
|
||||
@@ -436,6 +437,11 @@ class ExceptionTests(TestCase):
|
||||
|
||||
class TemplateExceptionTests(TestCase):
|
||||
def setUp(self):
|
||||
# Reset the loaders so they don't try to render cached templates.
|
||||
if loader.template_source_loaders is not None:
|
||||
for template_loader in loader.template_source_loaders:
|
||||
if hasattr(template_loader, 'reset'):
|
||||
template_loader.reset()
|
||||
self.old_templates = settings.TEMPLATE_DIRS
|
||||
settings.TEMPLATE_DIRS = ()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user