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 xtreak
Recipients cjw296, lisroach, mariocj89, michael.foord, vegarsti, xtreak
Date 2019-11-28.05:22:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574918563.58.0.608793152465.issue38932@roundup.psfhosted.org>
In-reply-to
Content
Thanks Vegard for the report. The docs say "Child mocks and the return value mock (if any) are reset as well." so it makes sense to me to reset the return_value and side_effect of children. But as mentioned in the PR it's a behaviour change that someone might be dependent on and can go on 3.9 . If we are not going ahead with the change then we can clarify the same in the docs and ask the user to reset mock recursively on their own so that it avoids confusion.
History
Date User Action Args
2019-11-28 05:22:43xtreaksetrecipients: + xtreak, cjw296, michael.foord, lisroach, mariocj89, vegarsti
2019-11-28 05:22:43xtreaksetmessageid: <1574918563.58.0.608793152465.issue38932@roundup.psfhosted.org>
2019-11-28 05:22:43xtreaklinkissue38932 messages
2019-11-28 05:22:43xtreakcreate