source: python/trunk/Lib/test/leakers/test_dictself.py

Last change on this file was 391, checked in by dmik, 11 years ago

python: Merge vendor 2.7.6 to trunk.

  • Property svn:eol-style set to native
File size: 232 bytes
Line 
1'''Test case for "self.__dict__ = self" circular reference bug (#1469629)'''
2
3import gc
4
5class LeakyDict(dict):
6 pass
7
8def leak():
9 ld = LeakyDict()
10 ld.__dict__ = ld
11 del ld
12 gc.collect(); gc.collect(); gc.collect()
Note: See TracBrowser for help on using the repository browser.