Skip to content

Commit ac6fd7b

Browse files
committed
Fix merge
1 parent 9c9d136 commit ac6fd7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2917,6 +2917,8 @@ def testfunc(n):
29172917
self.assertIsNotNone(ex)
29182918
uops = get_opnames(ex)
29192919
self.assertIn("_BINARY_OP", uops)
2920+
self.assertIn("_POP_TOP_NOP", uops)
2921+
self.assertLessEqual(count_ops(ex, "_POP_TOP"), 2)
29202922

29212923
def test_binary_op_extend_float_long_add_refcount_elimination(self):
29222924
def testfunc(n):
@@ -2932,6 +2934,8 @@ def testfunc(n):
29322934
self.assertIsNotNone(ex)
29332935
uops = get_opnames(ex)
29342936
self.assertIn("_BINARY_OP_EXTEND", uops)
2937+
self.assertIn("_POP_TOP_NOP", uops)
2938+
self.assertLessEqual(count_ops(ex, "_POP_TOP"), 2)
29352939

29362940
def test_remove_guard_for_slice_list(self):
29372941
def f(n):

0 commit comments

Comments
 (0)