Show More
@@ -3,6 +3,7 b'' | |||||
3 | """ |
|
3 | """ | |
4 | import io |
|
4 | import io | |
5 | import logging |
|
5 | import logging | |
|
6 | import re | |||
6 | import sys |
|
7 | import sys | |
7 | import os.path |
|
8 | import os.path | |
8 | from textwrap import dedent |
|
9 | from textwrap import dedent | |
@@ -349,17 +350,19 b' def r3o2():' | |||||
349 |
|
350 | |||
350 | @recursionlimit(150) |
|
351 | @recursionlimit(150) | |
351 | def test_recursion_one_frame(self): |
|
352 | def test_recursion_one_frame(self): | |
352 | with tt.AssertPrints("[... skipping similar frames: r1 at line 5 (95 times)]"): |
|
353 | with tt.AssertPrints(re.compile( | |
|
354 | r"\[\.\.\. skipping similar frames: r1 at line 5 \(\d{2} times\)\]") | |||
|
355 | ): | |||
353 | ip.run_cell("r1()") |
|
356 | ip.run_cell("r1()") | |
354 |
|
357 | |||
355 | @recursionlimit(150) |
|
358 | @recursionlimit(150) | |
356 | def test_recursion_three_frames(self): |
|
359 | def test_recursion_three_frames(self): | |
357 | with tt.AssertPrints( |
|
360 | with tt.AssertPrints(re.compile( | |
358 | "[... skipping similar frames: " |
|
361 | r"\[\.\.\. skipping similar frames: " | |
359 |
"r3a at line 8 |
|
362 | r"r3a at line 8 \(\d{2} times\), " | |
360 |
"r3b at line 11 |
|
363 | r"r3b at line 11 \(\d{2} times\), " | |
361 |
"r3c at line 14 |
|
364 | r"r3c at line 14 \(\d{2} times\)\]" | |
362 | ): |
|
365 | )): | |
363 | ip.run_cell("r3o2()") |
|
366 | ip.run_cell("r3o2()") | |
364 |
|
367 | |||
365 |
|
368 |
General Comments 0
You need to be logged in to leave comments.
Login now