Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/14582.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improved the recursion traceback test to exercise all requested traceback styles.
2 changes: 1 addition & 1 deletion testing/code/test_excinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading