We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24bab74 commit 8db4e0cCopy full SHA for 8db4e0c
Lib/test/test_traceback.py
@@ -123,8 +123,11 @@ def test_no_caret_with_no_debug_ranges_flag_python_traceback(self):
123
124
def test_recursion_error_during_traceback(self):
125
code = textwrap.dedent("""
126
+ import sys
127
from weakref import ref
128
129
+ sys.setrecursionlimit(15)
130
+
131
def f():
132
ref(lambda: 0, [])
133
f()
@@ -133,7 +136,7 @@ def f():
136
134
137
except RecursionError:
135
138
pass
- """)
139
+ """)
140
try:
141
with open(TESTFN, 'w') as f:
142
f.write(code)
0 commit comments