gh-97922: Run the GC only on eval breaker (#97920)

This commit is contained in:
Pablo Galindo Salgado 2022-10-08 07:57:09 -07:00 committed by GitHub
parent c66dbddfba
commit 83eb827247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 74 additions and 14 deletions

View file

@ -277,7 +277,7 @@ class TestIncompleteFrameAreInvisible(unittest.TestCase):
frame!
"""
nonlocal sneaky_frame_object
sneaky_frame_object = sys._getframe().f_back
sneaky_frame_object = sys._getframe().f_back.f_back
# We're done here:
gc.callbacks.remove(callback)