Message 339816 - Python tracker

Message339816

Author xtreak
Recipients John Parejko2, cjw296, eric.smith, mariocj89, michael.foord, xtreak
Date 2019-04-09.23:16:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554851762.46.0.910030606521.issue36580@roundup.psfhosted.org>
In-reply-to
Content
To add to this mock.Mock also copies dir(spec) but creating an instance from mock doesn't copy it where it's not a problem with create_autospec. Mock with spec does only attribute validation whereas create_autospec does signature validation. There is another open issue to make mock use spec passed as if it's autospecced issue30587 where this could be used as a data point to change API. I am adding mock devs for confirmation.
History
Date User Action Args
2019-04-09 23:16:02xtreaksetrecipients: + xtreak, eric.smith, cjw296, michael.foord, mariocj89, John Parejko2
2019-04-09 23:16:02xtreaksetmessageid: <1554851762.46.0.910030606521.issue36580@roundup.psfhosted.org>
2019-04-09 23:16:02xtreaklinkissue36580 messages
2019-04-09 23:16:02xtreakcreate