We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb7fc82 commit 66c8d8aCopy full SHA for 66c8d8a
Lib/test/test_sys_setprofile.py
@@ -516,7 +516,8 @@ class B:
516
sys.setprofile(lambda frame, event, args: events.append(event))
517
# Not important, we only want to trigger INSTRUMENTED_CALL_KW
518
args = (1,)
519
- B().f(*args, key=lambda x: 0)
+ m = B().f
520
+ m(*args, key=lambda x: 0)
521
sys.setprofile(None)
522
# The last c_call is the call to sys.setprofile
523
# INSTRUMENTED_CALL_FUNCTION_EX has different behavior than the other
0 commit comments