diff options
author | Dong-hee Na <donghee.na@python.org> | 2023-03-14 20:20:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 20:20:14 (GMT) |
commit | d77c48740f5cd17597693bd0d27e32db725fa3a0 (patch) | |
tree | 09a11de107925b819565dbc161655cd01d29218e /Lib/test/test__opcode.py | |
parent | cdb21ba74d933e262bc1696b6ce78b50cb5a4443 (diff) | |
download | cpython-d77c48740f5cd17597693bd0d27e32db725fa3a0.zip cpython-d77c48740f5cd17597693bd0d27e32db725fa3a0.tar.gz cpython-d77c48740f5cd17597693bd0d27e32db725fa3a0.tar.bz2 |
gh-102674: Remove _specialization_stats from Lib/opcode.py (#102685)
It's not use except in a test, so move it there instead.
Diffstat (limited to 'Lib/test/test__opcode.py')
-rw-r--r-- | Lib/test/test__opcode.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test__opcode.py b/Lib/test/test__opcode.py index db83106..fb4ab15 100644 --- a/Lib/test/test__opcode.py +++ b/Lib/test/test__opcode.py @@ -69,8 +69,7 @@ class OpcodeTests(unittest.TestCase): 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 |