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 336154f commit 2fb2b82Copy full SHA for 2fb2b82
1 file changed
Lib/test/test_list.py
@@ -349,10 +349,12 @@ def test_deopt_from_append_list(self):
349
# gh-132011: it used to crash, because
350
# of `CALL_LIST_APPEND` specialization failure.
351
code = textwrap.dedent("""
352
+ import _testinternalcapi
353
+
354
l = []
355
def lappend(l, x, y):
356
l.append((x, y))
- for x in range(3):
357
+ for x in range(_testinternalcapi.SPECIALIZATION_THRESHOLD):
358
lappend(l, None, None)
359
try:
360
lappend(list, None, None)
0 commit comments