From 659b5678fcb89417ce1967bc590fdd693f906e69 Mon Sep 17 00:00:00 2001 From: Anubhav Joshi Date: Sat, 15 Mar 2014 12:33:04 +0100 Subject: [PATCH] Fixed #22184 -- Allowed template_tests.tests to be run isolated --- tests/template_tests/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py index c277fcc036..1b38c1e112 100644 --- a/tests/template_tests/tests.py +++ b/tests/template_tests/tests.py @@ -641,6 +641,8 @@ class TemplateTests(TestCase): def get_template_tests(self): # SYNTAX -- # 'template_name': ('template contents', 'context dict', 'expected string output' or Exception class) + # This import is necessary when tests are run isolated: + from .templatetags import custom basedir = os.path.dirname(os.path.abspath(upath(__file__))) tests = { ### BASIC SYNTAX ################################################