Skip to content

Commit aae36ce

Browse files
committed
Count _POP_TOP_NOPs in unit tests.
1 parent 10ec3ed commit aae36ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2952,7 +2952,7 @@ class A:
29522952
uops = get_opnames(ex)
29532953
self.assertNotIn("_REPLACE_WITH_TRUE", uops)
29542954
self.assertIn("_INSERT_1_LOAD_CONST_INLINE_BORROW", uops)
2955-
self.assertIn("_POP_TOP_NOP", uops)
2955+
self.assertEqual(count_ops(ex, "_POP_TOP_NOP"), 1)
29562956

29572957
def test_attr_promotion_failure(self):
29582958
# We're not testing for any specific uops here, just

0 commit comments

Comments
 (0)