summaryrefslogtreecommitdiff
path: root/tests/decorators/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/decorators/tests.py')
-rw-r--r--tests/decorators/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/decorators/tests.py b/tests/decorators/tests.py
index 38bf0c7ee1..70b03f6a3a 100644
--- a/tests/decorators/tests.py
+++ b/tests/decorators/tests.py
@@ -159,10 +159,11 @@ class DecoratorsTest(TestCase):
# For testing method_decorator, a decorator that assumes a single argument.
# We will get type arguments if there is a mismatch in the number of arguments.
def simple_dec(func):
+ @wraps(func)
def wrapper(arg):
return func("test:" + arg)
- return wraps(func)(wrapper)
+ return wrapper
simple_dec_m = method_decorator(simple_dec)