gh-105481: remove dependency of _inline_cache_entries on opname (#107339)

This commit is contained in:
Irit Katriel 2023-07-27 14:15:25 +01:00 committed by GitHub
parent 766d2518ae
commit d77d973335
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 22 deletions

View file

@ -106,7 +106,7 @@ class SpecializationStatsTests(unittest.TestCase):
specialized_opcodes = [
op.lower()
for op in opcode._specializations
if opcode._inline_cache_entries[opcode.opmap[op]]
if opcode._inline_cache_entries.get(op, 0)
]
self.assertIn('load_attr', specialized_opcodes)
self.assertIn('binary_subscr', specialized_opcodes)