[issue36581] __dir__ on unittest.mock not safe for all spec types

Dylan Semler report at bugs.python.org
Tue Apr 9 19:50:46 EDT 2019


Dylan Semler <dylan.semler at gmail.com> added the comment:

I agree docs only say "list of strings" and so this isn't a case where there's behavior that contrasts with the documentation. I merely ran into this issue in my project and found it difficult to get to the root of so wanted to fix it upstream. I made a patch and reported this bug only as a formality to accompany my patch.

----------

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


More information about the Python-bugs-list mailing list