Closed adamchainz closed 1 month ago
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.
RichTextTestResult._exc_info_to_string
--pdb
We need to fix the method to correctly use the start of
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