]> git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Python/Python-2.7.2/Lib/test/leakers/test_dictself.py
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / test / leakers / test_dictself.py
1 '''Test case for "self.__dict__ = self" circular reference bug (#1469629)'''
2
3 import gc
4
5 class LeakyDict(dict):
6 pass
7
8 def leak():
9 ld = LeakyDict()
10 ld.__dict__ = ld
11 del ld
12 gc.collect(); gc.collect(); gc.collect()