[issue39766] unittest's assertRaises removes locals from tracebacks

2021-05-11 Thread Jackson Riley
Jackson Riley added the comment: +1 - I was surprised not to be able to get locals from many of the frames in pdb upon an unexpected exception being raised inside an assertRaises. Thanks for raising this issue Daniel. -- nosy: +jacksonriley ___ Py

[issue39766] unittest's assertRaises removes locals from tracebacks

2020-02-29 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue39766] unittest's assertRaises removes locals from tracebacks

2020-02-26 Thread daniel hahler
daniel hahler added the comment: The test for issue9815 passes since bbd3cf8f1e (bpo-23890). It seems like `traceback.clear_frames(tb)` should probably removed altogether? -- nosy: +vstinner ___ Python tracker

[issue39766] unittest's assertRaises removes locals from tracebacks

2020-02-26 Thread daniel hahler
New submission from daniel hahler : I was a bit surprised to find that unittest's assertRaises clears the locals on the traceback, which e.g. prevents pytest to display them in case of failures. This was done via https://bugs.python.org/issue9815 (https://github.com/python/cpython/commit/9681