[issue35330] When using mock to wrap an existing object, side_effect requires return_value

Chris Withers report at bugs.python.org
Sat Dec 8 06:25:07 EST 2018


Chris Withers <chris at withers.org> added the comment:


New changeset f05df0a4b679d0acfd0b1fe6187ba2d553b37afa by Chris Withers (Mario Corchero) in branch 'master':
bpo-35330:  Don't call the wrapped object if `side_effect` is set (GH10973)
https://github.com/python/cpython/commit/f05df0a4b679d0acfd0b1fe6187ba2d553b37afa


----------

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


More information about the Python-bugs-list mailing list