mirror of https://github.com/django/django.git
That commit contained a mistake that resulted in the use_cached_loader option of override_with_test_loader being ignored. As a consequence some configurations weren't exercised any more by the test suite.
This commit is contained in:
parent
dec93d8991
commit
cffa559082
|
@ -238,8 +238,10 @@ class override_with_test_loader(override_template_loaders):
|
|||
@classmethod
|
||||
def _get_loader(cls, templates_dict, use_cached_loader=False):
|
||||
if use_cached_loader:
|
||||
loader = cached.Loader(('TestTemplateLoader',))
|
||||
loader._cached_loaders = TestTemplateLoader(templates_dict)
|
||||
loader = cached.Loader(['TestTemplateLoader'])
|
||||
loader._cached_loaders = [TestTemplateLoader(templates_dict)]
|
||||
return loader
|
||||
else:
|
||||
return TestTemplateLoader(templates_dict)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue