From: Mikhail Efimov Date: Tue, 11 Nov 2025 20:16:46 +0000 (+0300) Subject: gh-141367: Use actual SPECIALIZATION_THRESHOLD value in specialization related test... X-Git-Tag: v3.15.0a2~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fb2b82161c6df57c4a247cb743816b79134e932;p=thirdparty%2FPython%2Fcpython.git gh-141367: Use actual SPECIALIZATION_THRESHOLD value in specialization related test (GH-141417) --- diff --git a/Lib/test/test_list.py b/Lib/test/test_list.py index 223f34fb696a..642b54d34849 100644 --- a/Lib/test/test_list.py +++ b/Lib/test/test_list.py @@ -349,10 +349,12 @@ class ListTest(list_tests.CommonTest): # gh-132011: it used to crash, because # of `CALL_LIST_APPEND` specialization failure. code = textwrap.dedent(""" + import _testinternalcapi + l = [] def lappend(l, x, y): l.append((x, y)) - for x in range(3): + for x in range(_testinternalcapi.SPECIALIZATION_THRESHOLD): lappend(l, None, None) try: lappend(list, None, None)