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 jacksonriley
Recipients jacksonriley, michael.foord, p-ganssle, serhiy.storchaka
Date 2019-11-13.09:30:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573637419.35.0.375879202244.issue34716@roundup.psfhosted.org>
In-reply-to
Content
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!
History
Date User Action Args
2019-11-13 09:30:19jacksonrileysetrecipients: + jacksonriley, michael.foord, serhiy.storchaka, p-ganssle
2019-11-13 09:30:19jacksonrileysetmessageid: <1573637419.35.0.375879202244.issue34716@roundup.psfhosted.org>
2019-11-13 09:30:19jacksonrileylinkissue34716 messages
2019-11-13 09:30:19jacksonrileycreate