Sign in
android
/
device
/
linaro
/
hikey
/
0e33772df9ca72fb5f6e3d9a9b9ee547997b1b66
/
.
/
uefi
/
linaro-edk2
/
AppPkg
/
Applications
/
Python
/
Python-2.7.2
/
Lib
/
test
/
leakers
/
test_dictself.py
blob: 354b24245cdb29a6a1ba6b21e4cabb3be3aaf252 [
file
] [
log
] [
blame
]
'''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
()