blob: 4207c328bae240bf0021fe4cfd8f7341668e11df [file] [log] [blame]
# Reference cycles involving only the ob_type field are rather uncommon
# but possible. Inspired by SF bug 1469629.
import gc
def leak():
class T(type):
pass
class U(type):
__metaclass__ = T
U.__class__ = U
del U
gc.collect(); gc.collect(); gc.collect()