Skip to content

Commit 0ebcf8c

Browse files
committed
gh-154014: Add regression test
1 parent 4ce06d1 commit 0ebcf8c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lib/test/test_capi/test_opt.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5127,6 +5127,16 @@ def f():
51275127
f" {executor} at offset {idx} rather"
51285128
f" than expected _EXIT_TRACE")
51295129

5130+
def test_jit_shutdown_after_cold_executor_creation(self):
5131+
script_helper.assert_python_ok("-c", textwrap.dedent(f"""
5132+
def f():
5133+
for x in range({TIER2_THRESHOLD + 3}):
5134+
for y in range({TIER2_THRESHOLD + 3}):
5135+
z = x + y
5136+
5137+
f()
5138+
"""), PYTHON_JIT="1")
5139+
51305140
def test_enter_executor_valid_op_arg(self):
51315141
script_helper.assert_python_ok("-c", textwrap.dedent("""
51325142
import sys

0 commit comments

Comments
 (0)