diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2022-05-22 08:20:29 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-25 10:53:52 +0200 |
commit | 6485894157949338d76ca9a0da0b4c9cfef40e10 (patch) | |
tree | 3710347f6232b8ad393e14f75d4d75ae22ab63ff /tests/decorators | |
parent | 90aabd730a2a434c227faf8a927b0e2ccd67e291 (diff) | |
download | django-6485894157949338d76ca9a0da0b4c9cfef40e10.tar.gz |
Renamed wrapped functions to wrapper.
All these functions are wrapping another function. They're the wrapper,
while the function they're wrapping is the wrapped.
Diffstat (limited to 'tests/decorators')
-rw-r--r-- | tests/decorators/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/decorators/tests.py b/tests/decorators/tests.py index a5bfeae7ea..38bf0c7ee1 100644 --- a/tests/decorators/tests.py +++ b/tests/decorators/tests.py @@ -196,10 +196,10 @@ class ClsDec: self.myattr = myattr def __call__(self, f): - def wrapped(): + def wrapper(): return f() and self.myattr - return update_wrapper(wrapped, f) + return update_wrapper(wrapper, f) class MethodDecoratorTests(SimpleTestCase): |