summaryrefslogtreecommitdiff
path: root/tests/template_tests
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2022-05-22 08:23:10 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-05-25 10:58:28 +0200
commitaff649a3bd0c4fd8f7d859464f0eb907e877443f (patch)
treebb7e4e8a385be65f15f6d3fdf2438c92afa3703a /tests/template_tests
parent6485894157949338d76ca9a0da0b4c9cfef40e10 (diff)
downloaddjango-aff649a3bd0c4fd8f7d859464f0eb907e877443f.tar.gz
Normalized imports of functools.wraps.
@wraps is 10 times more common than @functools.wraps. Standardize to the most common version.
Diffstat (limited to 'tests/template_tests')
-rw-r--r--tests/template_tests/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/template_tests/utils.py b/tests/template_tests/utils.py
index 2e78ec9894..9bab583e79 100644
--- a/tests/template_tests/utils.py
+++ b/tests/template_tests/utils.py
@@ -1,5 +1,5 @@
-import functools
import os
+from functools import wraps
from django.template.engine import Engine
from django.test.utils import override_settings
@@ -46,7 +46,7 @@ def setup(templates, *args, test_once=False):
# Make Engine.get_default() raise an exception to ensure that tests
# are properly isolated from Django's global settings.
@override_settings(TEMPLATES=None)
- @functools.wraps(func)
+ @wraps(func)
def inner(self):
# Set up custom template tag libraries if specified
libraries = getattr(self, "libraries", {})