Erik Byström <erik.byst...@gmail.com> added the comment:

Yes, you're right. I do think the docs are a bit misleading.

Maybe something like this would make it more clear?

"If a class is used as a spec then the returned object will be a mock of that 
class. When the constructor of the returned mock class is invoked an instance 
object is returned that has the same spec as a normal instance object would 
have. By passing instance=True you can directly create a mock instance of the 
class."

If not, feel free to close this issue.

----------

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

Reply via email to