From a1d2dfaa3dda69b3ef5deb09ccda4c8f88830f79 Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Tue, 14 Mar 2023 18:05:54 +0900 Subject: [PATCH] gh-102674: Remove _specialization_stats from Lib/opcode.py --- Lib/opcode.py | 8 -------- Lib/test/test__opcode.py | 3 +-- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Lib/opcode.py b/Lib/opcode.py index 23529d87a09ef9..d4a2d554cf67de 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -377,14 +377,6 @@ def pseudo_op(name, op, real_ops): _specialized_instructions = [ opcode for family in _specializations.values() for opcode in family ] -_specialization_stats = [ - "success", - "failure", - "hit", - "deferred", - "miss", - "deopt", -] _cache_format = { "LOAD_GLOBAL": { diff --git a/Lib/test/test__opcode.py b/Lib/test/test__opcode.py index db831069c7aeb8..fb4ab15f7041ed 100644 --- a/Lib/test/test__opcode.py +++ b/Lib/test/test__opcode.py @@ -69,8 +69,7 @@ def test_stack_effect_jump(self): class SpecializationStatsTests(unittest.TestCase): def test_specialization_stats(self): - stat_names = opcode._specialization_stats - + stat_names = ["success", "failure", "hit", "deferred", "miss", "deopt"] specialized_opcodes = [ op.lower() for op in opcode._specializations