[issue36848] autospec fails with AttributeError when mocked class has __signature__ non-writeable

Karthikeyan Singaravelan report at bugs.python.org
Wed May 8 10:16:21 EDT 2019


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

> Wow, is this just an issue that the pyside guys need to fix?

I guess so. PySide __init__.py has "import shiboken" which also does type.__signature__. It seems like shiboken is some kind of generator to generate Python bindings from C++ QT code. I couldn't dig any deeper. Since this has caused two reports of regression I can add an except block to silence the AttributeError and add a comment to this issue but can only test it manually installing pyside to ensure the AttributeError is not thrown.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36848>
_______________________________________


More information about the Python-bugs-list mailing list