cpython/Lib/unittest
Miss Islington (bot) 9bcc68b045
gh-98458: unittest: bugfix for infinite loop while handling chained exceptions that contain cycles (GH-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
(cherry picked from commit 72ec518203)

Co-authored-by: AlexTate <0xalextate@gmail.com>
2022-12-04 12:06:42 -08:00
..
test gh-98458: unittest: bugfix for infinite loop while handling chained exceptions that contain cycles (GH-98459) 2022-12-04 12:06:42 -08:00
__init__.py bpo-45046: Support context managers in unittest (GH-28045) 2022-05-08 08:12:19 -07:00
__main__.py
_log.py
async_case.py [3.11] gh-97837: Change deprecation warning message in unittest (GH-97838) (GH-97887) 2022-10-04 20:55:06 -07:00
case.py [3.11] gh-99645: Fix a bug in handling class cleanups in unittest.TestCase (GH-99646) (GH-99698) 2022-11-22 19:02:56 +02:00
loader.py bpo-45162: Revert "Remove many old deprecated unittest features" (GH-30935) 2022-01-26 20:39:15 -08:00
main.py bpo-46421: Fix unittest filename evaluation when called as a module (GH-30654) 2022-03-17 16:37:52 -07:00
mock.py [3.11] gh-98086: Now `patch.dict` can decorate async functions (GH-98095) (#99365) 2022-11-19 10:10:42 +00:00
result.py gh-98458: unittest: bugfix for infinite loop while handling chained exceptions that contain cycles (GH-98459) 2022-12-04 12:06:42 -08:00
runner.py bpo-45162: Revert "Remove many old deprecated unittest features" (GH-30935) 2022-01-26 20:39:15 -08:00
signals.py
suite.py bpo-43913: Fix bugs in cleaning up classes and modules in unittest. (GH-28006) 2021-08-30 18:25:59 +02:00
util.py