Cleanup template loader overrides in tests
A lot of tests in template_tests
repeat a try
finally
block for overriding the template loader. This could be managed easily with contexts. django.test.utils.setup_test_template_loader
makes use of a function base test template loader (which entered a deprecation timeline in 1.4
) and together with django.test.utils.restore_template_loaders
could also be managed as a context.
Change History
(5)
Owner: |
changed from nobody to Unai Zalakain
|
Status: |
new → assigned
|
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
PR sent! https://github.com/django/django/pull/2065