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 blueyed
Recipients blueyed
Date 2020-02-26.22:01:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582754471.69.0.783470624559.issue39766@roundup.psfhosted.org>
In-reply-to
Content
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/9681022f1ee5c6c9160c515b24d2a3d1efe8b90d).

Maybe this should only get done for expected failures, so that unexpected exceptions can be inspected better?
History
Date User Action Args
2020-02-26 22:01:11blueyedsetrecipients: + blueyed
2020-02-26 22:01:11blueyedsetmessageid: <1582754471.69.0.783470624559.issue39766@roundup.psfhosted.org>
2020-02-26 22:01:11blueyedlinkissue39766 messages
2020-02-26 22:01:11blueyedcreate