Message370675
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__ |
|
Date |
User |
Action |
Args |
2020-06-03 15:23:32 | terry.reedy | set | recipients:
+ terry.reedy, cjw296, xtreak, rkm, Rob Taft |
2020-06-03 15:23:32 | terry.reedy | set | messageid: <1591197812.16.0.120949979035.issue40805@roundup.psfhosted.org> |
2020-06-03 15:23:32 | terry.reedy | link | issue40805 messages |
2020-06-03 15:23:32 | terry.reedy | create | |
|