Skip to content

Commit 66c8d8a

Browse files
Update Lib/test/test_sys_setprofile.py
Co-authored-by: Mark Shannon <[email protected]>
1 parent eb7fc82 commit 66c8d8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_sys_setprofile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,8 @@ class B:
516516
sys.setprofile(lambda frame, event, args: events.append(event))
517517
# Not important, we only want to trigger INSTRUMENTED_CALL_KW
518518
args = (1,)
519-
B().f(*args, key=lambda x: 0)
519+
m = B().f
520+
m(*args, key=lambda x: 0)
520521
sys.setprofile(None)
521522
# The last c_call is the call to sys.setprofile
522523
# INSTRUMENTED_CALL_FUNCTION_EX has different behavior than the other

0 commit comments

Comments
 (0)