[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception
R. David Murray
report at bugs.python.org
Sat Mar 28 09:39:27 EDT 2020
R. David Murray <rdmurray at bitdance.com> added the comment:
My guess is that it isn't so much that __bool__ is special, as that the evaluation of values in a boolean context is special. What you have to do to make a mock behave "correctly" in the face that I'm not sure (I haven't investigated). And I might be wrong.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39966>
_______________________________________
More information about the Python-bugs-list
mailing list