Skip to content

Commit 5dfa385

Browse files
authored
Fix recursion traceback test to cover all styles (#14582)
1 parent a8ac094 commit 5dfa385

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎changelog/14582.misc.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improved the recursion traceback test to exercise all requested traceback styles.

‎testing/code/test_excinfo.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ def entry():
11311131
mod.entry()
11321132

11331133
for style in ("short", "long", "no"):
1134-
p = ExceptionInfoFormatter(style="short")
1134+
p = ExceptionInfoFormatter(style=style)
11351135
reprtb = p.repr_traceback(excinfo)
11361136
assert reprtb.extraline == "!!! Recursion detected (same locals & position)"
11371137
assert str(reprtb)

0 commit comments

Comments
 (0)