Commit 5fb582d9 authored by Tim Graham's avatar Tim Graham
Browse files

Removed test.utils.TestTemplateLoader per deprecation timeline.

parent 7468c948
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -15,10 +15,8 @@ from django.core.signals import request_started
from django.db import reset_queries
from django.http import request
from django.template import Template
from django.template.loaders import locmem
from django.test.signals import template_rendered, setting_changed
from django.utils import six
from django.utils.deprecation import RemovedInDjango19Warning
from django.utils.encoding import force_str
from django.utils.translation import deactivate

@@ -145,16 +143,6 @@ def get_runner(settings, test_runner_class=None):
    return test_runner


class TestTemplateLoader(locmem.Loader):

    def __init__(self, *args, **kwargs):
        warnings.warn(
            "django.test.utils.TestTemplateLoader was renamed to "
            "django.template.loaders.locmem.Loader.",
            RemovedInDjango19Warning, stacklevel=2)
        super(TestTemplateLoader, self).__init__(*args, **kwargs)


class override_settings(object):
    """
    Acts as either a decorator, or a context manager. If it's a decorator it