diff --git a/changelog/14582.misc.rst b/changelog/14582.misc.rst new file mode 100644 index 00000000000..e824c3e6d09 --- /dev/null +++ b/changelog/14582.misc.rst @@ -0,0 +1 @@ +Improved the recursion traceback test to exercise all requested traceback styles. diff --git a/testing/code/test_excinfo.py b/testing/code/test_excinfo.py index d14f0c093ab..883a7c5f9b0 100644 --- a/testing/code/test_excinfo.py +++ b/testing/code/test_excinfo.py @@ -1131,7 +1131,7 @@ def entry(): mod.entry() for style in ("short", "long", "no"): - p = ExceptionInfoFormatter(style="short") + p = ExceptionInfoFormatter(style=style) reprtb = p.repr_traceback(excinfo) assert reprtb.extraline == "!!! Recursion detected (same locals & position)" assert str(reprtb)