Skip to content

Commit 86541fe

Browse files
add comment
1 parent 203c135 commit 86541fe

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
@@ -2747,6 +2747,8 @@ def testfunc(n):
27472747
uops = get_opnames(ex)
27482748
self.assertIn("_CALL_BUILTIN_FAST", uops)
27492749
self.assertNotIn("_GUARD_CALLABLE_BUILTIN_FAST", uops)
2750+
# divmod(10, 3) should have at least 3 _POP_TOP_NOP
2751+
# x += y[0] produces at least 3 _POP_TOP_NOP
27502752
self.assertGreaterEqual(count_ops(ex, "_POP_TOP_NOP"), 6)
27512753

27522754
def test_call_builtin_fast_with_keywords(self):

0 commit comments

Comments
 (0)