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 mrh1997
Recipients michael.foord, mrh1997, xtreak
Date 2018-09-20.20:31:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537475462.45.0.956365154283.issue33236@psf.upfronthosting.co.za>
In-reply-to
Content
According to this chapter ( https://docs.python.org/3/library/unittest.mock.html#unittest.mock.MagicMock ) the specialmethods in MagicMock are different:

.return_value is preinitialized with defaultvalues, which depends on the operator. In the case of .__iter__ this is "iter([])".
This is the case when running __iter__(), but not when running __iter__.result_value
History
Date User Action Args
2018-09-20 20:31:02mrh1997setrecipients: + mrh1997, michael.foord, xtreak
2018-09-20 20:31:02mrh1997setmessageid: <1537475462.45.0.956365154283.issue33236@psf.upfronthosting.co.za>
2018-09-20 20:31:02mrh1997linkissue33236 messages
2018-09-20 20:31:02mrh1997create