Skip to content

Commit 301060b

Browse files
add tests
1 parent 27e9def commit 301060b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2760,6 +2760,8 @@ def testfunc(n):
27602760
self.assertIn("_CALL_METHOD_DESCRIPTOR_O_INLINE", uops)
27612761
self.assertNotIn("_CALL_METHOD_DESCRIPTOR_O", uops)
27622762
self.assertNotIn("_GUARD_CALLABLE_METHOD_DESCRIPTOR_O", uops)
2763+
self.assertIn("_POP_TOP_NOP", uops)
2764+
self.assertLessEqual(count_ops(ex, "_POP_TOP"), 4)
27632765

27642766
def test_call_method_descriptor_noargs(self):
27652767
def testfunc(n):

0 commit comments

Comments
 (0)