Michael Foord added the comment:

attach_mock should use function.mock when it is passed a function created by 
autospec. It should also *probably* fail if given a non-mock object (although 
that would prevent people duck-typing and attaching a mock-like object so I'm 
open to discussion on that).

----------
stage:  -> needs patch
versions:  -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28569>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to