homepage

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 james-w, michael.foord, nessita
Date 2014年08月29日.12:41:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409316085.45.0.606075596927.issue22293@psf.upfronthosting.co.za>
In-reply-to
Content
Switching to Mock instead of MagicMock may help, as that doesn't have the magic proxies at all. (patch has an argument to specify which class of Mock should be used to create the mock object, MagicMock is just the default.)
Other wise using __slots__ would be fine. An alternative approach would be for MagicMock to use __getattribute__ instead of the magic proxies.
History
Date User Action Args
2014年08月29日 12:41:25michael.foordsetrecipients: + michael.foord, nessita, james-w
2014年08月29日 12:41:25michael.foordsetmessageid: <1409316085.45.0.606075596927.issue22293@psf.upfronthosting.co.za>
2014年08月29日 12:41:25michael.foordlinkissue22293 messages
2014年08月29日 12:41:25michael.foordcreate

AltStyle によって変換されたページ (->オリジナル) /