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 terry.reedy
Recipients Rob Taft, cjw296, rkm, terry.reedy, xtreak
Date 2020-06-03.15:23:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591197812.16.0.120949979035.issue40805@roundup.psfhosted.org>
In-reply-to
Content
Chris, I see no evidence in the *incomplete* traceback not posted here that there is a bug in mock.  Mock calls "hasattr(obj, '__func__') and apparently flask, called via werkzeug, answers 'RuntimeError'.  The overt bug is that calling werkzeug.local.(type(obj)?).__getattr__ fails by doing something other than "return the (computed) attribute value or raise an AttributeError exception".
https://docs.python.org/3/reference/datamodel.html#object.__getattr__
History
Date User Action Args
2020-06-03 15:23:32terry.reedysetrecipients: + terry.reedy, cjw296, xtreak, rkm, Rob Taft
2020-06-03 15:23:32terry.reedysetmessageid: <1591197812.16.0.120949979035.issue40805@roundup.psfhosted.org>
2020-06-03 15:23:32terry.reedylinkissue40805 messages
2020-06-03 15:23:32terry.reedycreate