From adacbd64a062662f54d6e91dc4e460eff96b5dd5 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Wed, 3 Dec 2014 13:22:15 +0200 Subject: [PATCH] Fixed "no such test method" error in template_tests. Without this patch, you couldn't run an individual test case in template_tests. Refs #23768 --- tests/template_tests/syntax_tests/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/template_tests/syntax_tests/utils.py b/tests/template_tests/syntax_tests/utils.py index 5445f5b8c4..168eca73f8 100644 --- a/tests/template_tests/syntax_tests/utils.py +++ b/tests/template_tests/syntax_tests/utils.py @@ -52,6 +52,7 @@ def setup(templates, *args): ('django.template.loaders.locmem.Loader', templates), ]), ]) + @functools.wraps(func) def inner(self): loader = Engine.get_default().template_loaders[0]