Message365199
It's supposed to raise an AttributeError if the attribute is not present. The previous case was that magicmethods were not wrapped returning configured values. So this conflicts with the documentation returning a default value when not present instead of raising an AttributeError.
wraps: Item for the mock object to wrap. If wraps is not None then calling the Mock will pass the call through to the wrapped object (returning the real result). Attribute access on the mock will return a Mock object that wraps the corresponding attribute of the wrapped object (so attempting to access an attribute that doesn’t exist will raise an AttributeError). |
|
Date |
User |
Action |
Args |
2020-03-28 03:31:18 | xtreak | set | recipients:
+ xtreak, rbcollins, cjw296, r.david.murray, michael.foord, pconnell, Darragh Bailey, lisroach, anthonypjshaw, mariocj89, aviso, Amir |
2020-03-28 03:31:18 | xtreak | set | messageid: <1585366278.46.0.801675094924.issue39966@roundup.psfhosted.org> |
2020-03-28 03:31:18 | xtreak | link | issue39966 messages |
2020-03-28 03:31:18 | xtreak | create | |
|