Oct. 30, 2019
8:35 a.m.
Erik Byström <erik.bystrom@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 <report@bugs.python.org> <https://bugs.python.org/issue30548> _______________________________________