Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:

eat_self is also a problem as mentioned and would help in solving issue27715 
where self is not ignored. I tried a patch for issue27715 but that would 
require changing the output of some functions that take _eat_self as a 
parameter to return _eat_self since the functions themselves change the value. 
So some call sites need to be updated to receive actual value for _eat_self 
when the signature is created.

It's a hard issue and there are less tests in this area so it's even harder to 
figure out all the existing cases supported and if the solution is breaking 
existing code. Also the general repr during failure could be improved since it 
just says prints same call object for expected and actual with an assertion 
error making it more confusing (issue25312). 

I think there are currently 3-4 different variants of this issue in the tracker 
due to wrong signature that could be resolved if _call_matcher becomes more 
robust using correct signature.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue26752>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to