Sign in
qemu
/
edk2
/
bd224a5dad4d32f5224f5e8ae998b70e4621dcd3
/
.
/
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
()