Kaydet (Commit) 5f42a852 authored tarafından Armin Rigo's avatar Armin Rigo

Add the original test case of bug #1469629,

formatted according to local conventions.
üst 8664d749
'''Test case for "self.__dict__ = self" circular reference bug (#1469629)'''
import gc
class LeakyDict(dict):
pass
def leak():
ld = LeakyDict()
ld.__dict__ = ld
del ld
gc.collect(); gc.collect(); gc.collect()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment