Skip to content

Commit

Permalink
Allow repeated frames in any order in test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmojaki committed Dec 20, 2019
1 parent c773c5d commit 5f67f77
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions IPython/core/tests/test_ultratb.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,10 @@ def test_recursion_one_frame(self):

@recursionlimit(150)
def test_recursion_three_frames(self):
with tt.AssertPrints(re.compile(
r"\[\.\.\. skipping similar frames: "
r"r3a at line 8 \(\d{2} times\), "
r"r3b at line 11 \(\d{2} times\), "
r"r3c at line 14 \(\d{2} times\)\]"
)):
with tt.AssertPrints("[... skipping similar frames: "), \
tt.AssertPrints(re.compile(r"r3a at line 8 \(\d{2} times\)"), suppress=False), \
tt.AssertPrints(re.compile(r"r3b at line 11 \(\d{2} times\)"), suppress=False), \
tt.AssertPrints(re.compile(r"r3c at line 14 \(\d{2} times\)"), suppress=False):
ip.run_cell("r3o2()")


Expand Down

0 comments on commit 5f67f77

Please sign in to comment.