[issue22138] patch.object doesn't restore function defaults
Sean McCully
report at bugs.python.org
Sun Aug 10 23:45:53 CEST 2014
Sean McCully added the comment:
So the changes submitted, take into the attributes that are part of the standard Python Data Model/Descriptors and defined as editable per documentation.
https://docs.python.org/3/reference/datamodel.html
The thought is if a user is needing to support outside of Proxy Object (currently supported) and default descriptor attributes then mock should be special cased by user/developer.
Please advise on current solution.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22138>
_______________________________________
More information about the Python-bugs-list
mailing list