Skip to content

Commit ba0ebf8

Browse files
committed
_LOAD_CONST_INLINE_BORROW
1 parent ef83f33 commit ba0ebf8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4662,6 +4662,7 @@ def testfunc(n):
46624662
self.assertIsNotNone(ex)
46634663
uops = get_opnames(ex)
46644664
# lookup result is folded to constant 1, so comparison is optimized away
4665+
self.assertIn("_LOAD_CONST_INLINE_BORROW", uops)
46654666
self.assertNotIn("_COMPARE_OP_INT", uops)
46664667

46674668
def test_contains_op_frozenset_const_fold(self):
@@ -4676,6 +4677,7 @@ def testfunc(n):
46764677
self.assertEqual(res, TIER2_THRESHOLD)
46774678
self.assertIsNotNone(ex)
46784679
uops = get_opnames(ex)
4680+
self.assertIn("_LOAD_CONST_INLINE_BORROW", uops)
46794681
self.assertNotIn("_CONTAINS_OP_SET", uops)
46804682

46814683
def test_contains_op_frozendict_const_fold(self):
@@ -4690,6 +4692,7 @@ def testfunc(n):
46904692
self.assertEqual(res, TIER2_THRESHOLD)
46914693
self.assertIsNotNone(ex)
46924694
uops = get_opnames(ex)
4695+
self.assertIn("_LOAD_CONST_INLINE_BORROW", uops)
46934696
self.assertNotIn("_CONTAINS_OP_DICT", uops)
46944697

46954698
def test_not_contains_op_frozendict_const_fold(self):
@@ -4704,8 +4707,9 @@ def testfunc(n):
47044707
self.assertEqual(res, TIER2_THRESHOLD)
47054708
self.assertIsNotNone(ex)
47064709
uops = get_opnames(ex)
4710+
self.assertIn("_LOAD_CONST_INLINE_BORROW", uops)
47074711
self.assertNotIn("_CONTAINS_OP_DICT", uops)
4708-
4712+
47094713
def test_binary_subscr_list_slice(self):
47104714
def testfunc(n):
47114715
x = 0

0 commit comments

Comments
 (0)