You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Chaining @wraps with non-modifying then modifying signatures leads to erroneous __wrapped__ flag been kept. #66
defa(foo):
returnfoo+1asserta(1) ==2# create a first wrapper that is signature-preserving@wraps(a)defwrapper(foo):
returna(foo) -1assertwrapper(1) ==1# the __wrapped__ attr is here:assertwrapper.__wrapped__isa# create a second wrapper that is not signature-preserving@wraps(wrapper, append_args="bar")defsecond_wrapper(foo, bar):
returnwrapper(foo) +barassertsecond_wrapper(1, -1) ==0withpytest.raises(AttributeError):
second_wrapper.__wrapped__# <---- does not raise !
Activity
Fix test for smarie#85, and update test for smarie#66.