Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test_opt.py
  • Loading branch information
Wulian233 authored Sep 21, 2026
commit 53492190bb522b62f6aedbe47f859adf24cf9eea
6 changes: 3 additions & 3 deletions Lib/test/test_capi/test_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5981,7 +5981,7 @@ def __next__(self):
def test_149335_trace_buffer_guard(self):
# https://github.com/python/cpython/issues/149335

result = script_helper.run_python_until_end('-c', textwrap.dedent("""
result = script_helper.run_python_until_end('-c', textwrap.dedent(f"""
import sys

def f1():
Expand Down Expand Up @@ -6011,7 +6011,7 @@ def f1():
mv1 = mv_12 = mv3 = mv_14 = mv45 = sys.float_info.epsilon
mv46 = sys.float_info.epsilon

for i in range(15000):
for i in range({TIER2_THRESHOLD}):
f1()
"""), PYTHON_JIT="1")
self.assertEqual(result[0].rc, 0, result)
Expand All @@ -6029,7 +6029,7 @@ def __next__(self):
raise StopIteration

obj = C()
for _ in range(10_000):
for _ in range(TIER2_THRESHOLD):
for _ in obj:
pass
return weakref.ref(C)
Expand Down
Loading