[issue28569] mock.attach_mock should work with any return value of patch()

Michael Foord report at bugs.python.org
Mon Nov 14 06:42:31 EST 2016


Michael Foord added the comment:

It should be perfectly valid to use attach_mock with an attribute that doesn't already exist. Part of it's purpose is to create new attributes.

----------

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


More information about the Python-bugs-list mailing list