summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compile.py
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2022-03-01 13:53:13 (GMT)
committerGitHub <noreply@github.com>2022-03-01 13:53:13 (GMT)
commit7820a5897e7762df23bff1cbe749652130654a08 (patch)
treed4040cce6aa8a7f0ee8a3edf6bb644e1b0d8a6f4 /Lib/test/test_compile.py
parentdf9f7597559b6256924fcd3a1c3dc24cd5c5edaf (diff)
downloadcpython-7820a5897e7762df23bff1cbe749652130654a08.zip
cpython-7820a5897e7762df23bff1cbe749652130654a08.tar.gz
cpython-7820a5897e7762df23bff1cbe749652130654a08.tar.bz2
bpo-46841: Use inline caching for `COMPARE_OP` (GH-31622)
Diffstat (limited to 'Lib/test/test_compile.py')
-rw-r--r--Lib/test/test_compile.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py
index 5268192..79046b8 100644
--- a/Lib/test/test_compile.py
+++ b/Lib/test/test_compile.py
@@ -1002,7 +1002,9 @@ if 1:
'JUMP_FORWARD',
)
- for line, instr in enumerate(dis.Bytecode(if_else_break)):
+ for line, instr in enumerate(
+ dis.Bytecode(if_else_break, show_caches=True)
+ ):
if instr.opname == 'JUMP_FORWARD':
self.assertNotEqual(instr.arg, 0)
elif instr.opname in HANDLED_JUMPS: