mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
gh-105481: remove dependency of _inline_cache_entries on opname (#107339)
This commit is contained in:
parent
766d2518ae
commit
d77d973335
5 changed files with 24 additions and 22 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue