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 berker.peksag, ericvw, grzgrzgrz3, mariocj89, michael.foord, rbcollins, vstinner
Date 2017-06-23.10:50:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1498215021.05.0.234602129333.issue30541@psf.upfronthosting.co.za>
In-reply-to
Content
Note that you can use an object as the parameter to the spec argument rather than just a list of attributes. 

Hmmm... I'm not totally opposed to the addition of a "seal_mock" method (optionally with a recurse boolean for child mocks) being added to the Mock/MagicMock classes. It's quite a nice API. I don't like the idea of an additional Mock class for this.
History
Date User Action Args
2017-06-23 10:50:21michael.foordsetrecipients: + michael.foord, vstinner, rbcollins, ericvw, berker.peksag, grzgrzgrz3, mariocj89
2017-06-23 10:50:21michael.foordsetmessageid: <1498215021.05.0.234602129333.issue30541@psf.upfronthosting.co.za>
2017-06-23 10:50:21michael.foordlinkissue30541 messages
2017-06-23 10:50:20michael.foordcreate