Message325927
| 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:02 | mrh1997 | set | recipients: + mrh1997, michael.foord, xtreak |
| 2018-09-20 20:31:02 | mrh1997 | set | messageid: <1537475462.45.0.956365154283.issue33236@psf.upfronthosting.co.za> |
| 2018-09-20 20:31:02 | mrh1997 | link | issue33236 messages |
| 2018-09-20 20:31:02 | mrh1997 | create | |