Michael Foord added the comment:

create_autospec and Mock(spec=spec) are very different. Mock(spec=spec) creates 
a mock object with the same *attributes* as the original. It does not create 
functions like create_autospec can.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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

Reply via email to