Skip to content
Prev Previous commit
Create all frames on stack from finalizer.
  • Loading branch information
markshannon committed Jun 29, 2022
commit 939769cab192429916417b8176b8eea069efecee
5 changes: 1 addition & 4 deletions Lib/test/test_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,7 @@ def gen():

class Sneaky:
Comment thread
markshannon marked this conversation as resolved.
def __del__(self):
try:
raise KeyboardInterrupt
except:
pass
inspect.stack()

sneaky = Sneaky()
sneaky._s = Sneaky()
Expand Down