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 Amir, Darragh Bailey, anthonypjshaw, aviso, cjw296, lisroach, mariocj89, michael.foord, pconnell, r.david.murray, rbcollins, xtreak
Date 2020-03-28.03:31:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585366278.46.0.801675094924.issue39966@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2020-03-28 03:31:18xtreaksetrecipients: + xtreak, rbcollins, cjw296, r.david.murray, michael.foord, pconnell, Darragh Bailey, lisroach, anthonypjshaw, mariocj89, aviso, Amir
2020-03-28 03:31:18xtreaksetmessageid: <1585366278.46.0.801675094924.issue39966@roundup.psfhosted.org>
2020-03-28 03:31:18xtreaklinkissue39966 messages
2020-03-28 03:31:18xtreakcreate