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 michael.foord
Recipients anfedorov, michael.foord
Date 2016-11-07.12:16:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478520960.73.0.0894520911168.issue28569@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2016-11-07 12:16:00michael.foordsetrecipients: + michael.foord, anfedorov
2016-11-07 12:16:00michael.foordsetmessageid: <1478520960.73.0.0894520911168.issue28569@psf.upfronthosting.co.za>
2016-11-07 12:16:00michael.foordlinkissue28569 messages
2016-11-07 12:16:00michael.foordcreate