Message226059
| 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:25 | michael.foord | set | recipients:
+ michael.foord, nessita, james-w |
| 2014年08月29日 12:41:25 | michael.foord | set | messageid: <1409316085.45.0.606075596927.issue22293@psf.upfronthosting.co.za> |
| 2014年08月29日 12:41:25 | michael.foord | link | issue22293 messages |
| 2014年08月29日 12:41:25 | michael.foord | create |
|