[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

Avram report at bugs.python.org
Mon Apr 27 10:01:14 EDT 2020


Avram <python at avram.us> added the comment:

Checking for presence and then falling through to the <=3.8 behavior as in the patch, seems reasonable. The default magic method behavior presumably comes out of research, trial, and error. If the docs need to be clearer, I think that's different that scrapping the whole approach.

----------

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


More information about the Python-bugs-list mailing list