diff options
author | AlexTate <0xalextate@gmail.com> | 2022-12-04 19:37:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-04 19:37:55 (GMT) |
commit | 72ec518203c3f3577a5e888b12f10bb49060e6c2 (patch) | |
tree | 08f93da53cbb5efaeaefce304798548a97c686fa /Lib/unittest/suite.py | |
parent | 1012dc1b4367e05b92d67ea6925a39d50dce31b7 (diff) | |
download | cpython-72ec518203c3f3577a5e888b12f10bb49060e6c2.zip cpython-72ec518203c3f3577a5e888b12f10bb49060e6c2.tar.gz cpython-72ec518203c3f3577a5e888b12f10bb49060e6c2.tar.bz2 |
gh-98458: unittest: bugfix for infinite loop while handling chained exceptions that contain cycles (#98459)
* Bugfix addressing infinite loop while handling self-referencing chained exception in TestResult._clean_tracebacks()
* Bugfix extended to properly handle exception cycles in _clean_tracebacks. The "seen" set follows the approach used in the TracebackException class (thank you @iritkatriel for pointing it out)
* adds a test for a single chained exception that holds a self-loop in its __cause__ and __context__ attributes
Diffstat (limited to 'Lib/unittest/suite.py')
0 files changed, 0 insertions, 0 deletions