Skip to content

Commit 9f394e9

Browse files
add comment
1 parent 75c5bb1 commit 9f394e9

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
@@ -5269,6 +5269,8 @@ def testfunc(n):
52695269
uops = get_opnames(ex)
52705270
self.assertIn("_PUSH_FRAME", uops)
52715271
self.assertIn("_CHECK_FUNCTION_VERSION_KW", uops)
5272+
# Check the optimizer has optmized through the function call
5273+
# by promoting global `int` to a constant.
52725274
self.assertNotIn("_LOAD_GLOBAL_BUILTINS", uops)
52735275
self.assertIn("_CALL_BUILTIN_CLASS", uops)
52745276

@@ -5291,6 +5293,8 @@ def testfunc(n):
52915293
uops = get_opnames(ex)
52925294
self.assertIn("_PUSH_FRAME", uops)
52935295
self.assertIn("_CHECK_METHOD_VERSION_KW", uops)
5296+
# Check the optimizer has optmized through the function call
5297+
# by promoting global `int` to a constant.
52945298
self.assertNotIn("_LOAD_GLOBAL_BUILTINS", uops)
52955299
self.assertIn("_CALL_BUILTIN_CLASS", uops)
52965300

0 commit comments

Comments
 (0)