aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_embed.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-10-29 11:15:42 +0000
committerGitHub <noreply@github.com>2024-10-29 11:15:42 +0000
commitfaa3272fb8d63d481a136cc0467a0cba6ed7b264 (patch)
tree474ac9edbff637a8edb280846a1d3d9b113915c4 /Lib/test/test_embed.py
parent67f5c5bd6fcc956a785edef3be67e8cbe470cd31 (diff)
downloadcpython-faa3272fb8d63d481a136cc0467a0cba6ed7b264.tar.gz
cpython-faa3272fb8d63d481a136cc0467a0cba6ed7b264.zip
GH-125837: Split `LOAD_CONST` into three. (GH-125972)
* Add LOAD_CONST_IMMORTAL opcode * Add LOAD_SMALL_INT opcode * Remove RETURN_CONST opcode
Diffstat (limited to 'Lib/test/test_embed.py')
-rw-r--r--Lib/test/test_embed.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index 035d4418b15..4ea43edccda 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -388,6 +388,9 @@ class EmbeddingTests(EmbeddingTestsMixin, unittest.TestCase):
opname in opcode._specialized_opmap
# Exclude superinstructions:
and "__" not in opname
+ # LOAD_CONST_IMMORTAL is "specialized", but is
+ # inserted during quickening.
+ and opname != "LOAD_CONST_IMMORTAL"
):
return True
return False