Skip to content

Commit d976e47

Browse files
committed
revert test
1 parent 9c745a0 commit d976e47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,8 +1585,10 @@ def testfunc(n):
15851585
_, ex = self._run_with_optimizer(testfunc, TIER2_THRESHOLD)
15861586
self.assertIsNotNone(ex)
15871587
uops = get_opnames(ex)
1588-
self.assertIn("_ALLOCATE_OBJECT", uops)
1589-
self.assertNotIn("_CHECK_OBJECT", uops)
1588+
# The __init__ call should be traced through via _PUSH_FRAME
1589+
self.assertIn("_PUSH_FRAME", uops)
1590+
# __init__ resolution allows promotion of range to constant
1591+
self.assertNotIn("_LOAD_GLOBAL_BUILTINS", uops)
15901592

15911593
def test_guard_type_version_locked_propagates(self):
15921594
"""

0 commit comments

Comments
 (0)