File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments