adamchainz / django-rich

Extensions for using Rich with Django.
MIT License
121 stars 10 forks source link

Fix traceback printing #217

Closed adamchainz closed 1 month ago

adamchainz commented 2 months ago

Description

RichTextTestResult._exc_info_to_string has drifted from unittest’s version, especially with changes in 3.11: https://github.com/python/cpython/commit/88b7d86a73da9388aa65c96401c2984c8c16f8db . This means that tracebacks are showing noisy frames from unittest and --pdb drops into the unittest method.

We need to fix the method to correctly use the start of