New submission from Karthikeyan Singaravelan <tir.kar...@gmail.com>:

With issue17185 __signature__ was set so that inspect can use this to return 
signature for mock objects. But in PySide2 it has __signature__ set as a 
non-writeable property and hence trying to set __signature__ fails. It's 
actually setting __signature__ for mocked object but still has this error for 
PySide.

mock backport report : https://github.com/testing-cabal/mock/issues/464
pytest-qt report : https://github.com/pytest-dev/pytest-qt/issues/258

----------
components: Library (Lib)
keywords: 3.7regression
messages: 341855
nosy: cjw296, mariocj89, michael.foord, xtreak
priority: normal
severity: normal
status: open
title: autospec fails with AttributeError when mocked class has __signature__ 
non-writeable
type: behavior
versions: Python 3.7, Python 3.8

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

Reply via email to