[issue36848] autospec fails with AttributeError when mocked class has __signature__ non-writeable
Chris Withers
report at bugs.python.org
Wed May 8 10:37:19 EDT 2019
Chris Withers <chris at withers.org> added the comment:
We only attempt to set __signature__ on Mocks, so I don't think extensions will be a problem.
I do think there's a bit of code smell on that method: it's called _check_* and then changes some attributes, that might be worth fixing?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36848>
_______________________________________
More information about the Python-bugs-list
mailing list