We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c745a0 commit d976e47Copy full SHA for d976e47
Lib/test/test_capi/test_opt.py
@@ -1585,8 +1585,10 @@ def testfunc(n):
1585
_, ex = self._run_with_optimizer(testfunc, TIER2_THRESHOLD)
1586
self.assertIsNotNone(ex)
1587
uops = get_opnames(ex)
1588
- self.assertIn("_ALLOCATE_OBJECT", uops)
1589
- self.assertNotIn("_CHECK_OBJECT", uops)
+ # The __init__ call should be traced through via _PUSH_FRAME
+ self.assertIn("_PUSH_FRAME", uops)
1590
+ # __init__ resolution allows promotion of range to constant
1591
+ self.assertNotIn("_LOAD_GLOBAL_BUILTINS", uops)
1592
1593
def test_guard_type_version_locked_propagates(self):
1594
"""
0 commit comments