Message356525
On second thoughts, perhaps option 2 is best (more in keeping with the usual behaviour of MagicMock).
Alternatively, could I propose a fourth option:
4. Change the behaviour of MagicMock more generally such that trying to unpack a MagicMock instance into two variables, for example, would assign a new MagicMock instance to each.
This would fix this issue and also seems like a sensible thing for MagicMock in general. I may be missing something/this may not be easy to set-up, I don't know! |
|
| Date |
User |
Action |
Args |
| 2019-11-13 09:30:19 | jacksonriley | set | recipients:
+ jacksonriley, michael.foord, serhiy.storchaka, p-ganssle |
| 2019-11-13 09:30:19 | jacksonriley | set | messageid: <1573637419.35.0.375879202244.issue34716@roundup.psfhosted.org> |
| 2019-11-13 09:30:19 | jacksonriley | link | issue34716 messages |
| 2019-11-13 09:30:19 | jacksonriley | create | |
|