Terry J. Reedy <tjre...@udel.edu> added the comment:
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__ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40805> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com