Skip to content

Commit 5451ba9

Browse files
authored
Revert functools.wraps to update_wrapper (Azure#22520)
1 parent 803732d commit 5451ba9

File tree

1 file changed

+1
-1
lines changed
  • tools/azure-devtools/src/azure_devtools/scenario_tests

1 file changed

+1
-1
lines changed

tools/azure-devtools/src/azure_devtools/scenario_tests/preparers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def _preparer_wrapper(test_class_instance, **kwargs):
172172
# Inform the next step in the chain (our parent) that we're cached.
173173
if self._use_cache or getattr(fn, "__use_cache", False):
174174
setattr(_preparer_wrapper, "__use_cache", True)
175-
functools.wraps(_preparer_wrapper, fn)
175+
functools.update_wrapper(_preparer_wrapper, fn)
176176
return _preparer_wrapper
177177

178178
@contextlib.contextmanager

0 commit comments

Comments
 (0)