Skip to content

Commit 5f67f77

Browse files
committed
Allow repeated frames in any order in test
1 parent c773c5d commit 5f67f77

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

IPython/core/tests/test_ultratb.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -350,12 +350,10 @@ def test_recursion_one_frame(self):
350350

351351
@recursionlimit(150)
352352
def test_recursion_three_frames(self):
353-
with tt.AssertPrints(re.compile(
354-
r"\[\.\.\. skipping similar frames: "
355-
r"r3a at line 8 \(\d{2} times\), "
356-
r"r3b at line 11 \(\d{2} times\), "
357-
r"r3c at line 14 \(\d{2} times\)\]"
358-
)):
353+
with tt.AssertPrints("[... skipping similar frames: "), \
354+
tt.AssertPrints(re.compile(r"r3a at line 8 \(\d{2} times\)"), suppress=False), \
355+
tt.AssertPrints(re.compile(r"r3b at line 11 \(\d{2} times\)"), suppress=False), \
356+
tt.AssertPrints(re.compile(r"r3c at line 14 \(\d{2} times\)"), suppress=False):
359357
ip.run_cell("r3o2()")
360358

361359

0 commit comments

Comments
 (0)