This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Erik Byström
Recipients Erik Byström, docs@python
Date 2017-06-02.09:06:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496394381.09.0.91116482689.issue30548@psf.upfronthosting.co.za>
In-reply-to
Content
"a class" should most probably be replaced by "an instance" in the documentation for create_autospec.

"You can use a class as the spec for an instance object by passing instance=True. The returned mock will only be callable if instances of the mock are callable."

https://docs.python.org/3/library/unittest.mock.html#unittest.mock.create_autospec
History
Date User Action Args
2017-06-02 09:06:21Erik Byströmsetrecipients: + Erik Byström, docs@python
2017-06-02 09:06:21Erik Byströmsetmessageid: <1496394381.09.0.91116482689.issue30548@psf.upfronthosting.co.za>
2017-06-02 09:06:20Erik Byströmlinkissue30548 messages
2017-06-02 09:06:20Erik Byströmcreate