[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.
Martin
report at bugs.python.org
Thu Nov 25 08:59:59 EST 2021
Martin <martin.schroeder at nerdluecht.de> added the comment:
Irit, would you be able to take a look at the patch?
---
I found another application scenario for the patch: In Numpy and Pandas, the assert_* functions in testing have a __tracebackhide__ local that advises pytest to hide the frame. With the patch in place, we could at least not display any locals if __tracebackhide__ is present.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43656>
_______________________________________
More information about the Python-bugs-list
mailing list