[issue23078] unittest.mock patch autospec doesn't work on staticmethods

Felipe report at bugs.python.org
Tue Sep 15 02:05:30 CEST 2015


Felipe added the comment:

The attached patch implements these changes through _callable instead. This patch also ensures that the underlying object that staticmethod and classmethod wrap is a callable object as well.

----------
Added file: http://bugs.python.org/file40470/issue23078.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23078>
_______________________________________


More information about the Python-bugs-list mailing list