gh-102674: Remove _specialization_stats from Lib/opcode.py (#102685)

It's not use except in a test, so move it there instead.
This commit is contained in:
Dong-hee Na 2023-03-15 05:20:14 +09:00 committed by GitHub
parent cdb21ba74d
commit d77c48740f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 10 deletions

View file

@ -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