[issue42586] unittest.mock.Mock spec can't be array/ndarray in Python 3.9

Valeriu Predoi report at bugs.python.org
Mon Dec 7 09:40:15 EST 2020


Valeriu Predoi <valeriu.predoi at gmail.com> added the comment:

Indeed so! Sorry, I only glossed over that one before posting mine, now that I looked at it more carefully you are right, it does need a check on None and not calling the __bool__ member, which is affecting functionally passing an ndarray as spec - what should I do with my issue, close it? Cheers muchly!

----------

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


More information about the Python-bugs-list mailing list