diff options
author | Tomas R. <tomas.roun8@gmail.com> | 2024-10-09 12:54:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-09 12:54:39 (GMT) |
commit | 6b533a659bc8df04daa194d827604dcae14d5801 (patch) | |
tree | 8f5cfde281d1dbf7aed0e05b2348982e8ca966e3 /Lib | |
parent | 3024b16d51bb7f74177c5a5038cc9a56fd2b26bd (diff) | |
download | cpython-6b533a659bc8df04daa194d827604dcae14d5801.zip cpython-6b533a659bc8df04daa194d827604dcae14d5801.tar.gz cpython-6b533a659bc8df04daa194d827604dcae14d5801.tar.bz2 |
gh-125039: Make `this_instr`/`prev_instr` const in cases generator (GH-125071)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_generated_cases.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_generated_cases.py b/Lib/test/test_generated_cases.py index 5b15838..cd3718b 100644 --- a/Lib/test/test_generated_cases.py +++ b/Lib/test/test_generated_cases.py @@ -450,7 +450,7 @@ class TestGeneratedCases(unittest.TestCase): """ output = """ TARGET(OP) { - _Py_CODEUNIT *this_instr = frame->instr_ptr = next_instr; + _Py_CODEUNIT* const this_instr = frame->instr_ptr = next_instr; (void)this_instr; next_instr += 4; INSTRUCTION_STATS(OP); @@ -503,7 +503,7 @@ class TestGeneratedCases(unittest.TestCase): next_instr += 6; INSTRUCTION_STATS(OP); PREDICTED(OP); - _Py_CODEUNIT *this_instr = next_instr - 6; + _Py_CODEUNIT* const this_instr = next_instr - 6; (void)this_instr; _PyStackRef left; _PyStackRef right; @@ -536,7 +536,7 @@ class TestGeneratedCases(unittest.TestCase): } TARGET(OP1) { - _Py_CODEUNIT *this_instr = frame->instr_ptr = next_instr; + _Py_CODEUNIT* const this_instr = frame->instr_ptr = next_instr; (void)this_instr; next_instr += 2; INSTRUCTION_STATS(OP1); |