source:
python/trunk/Lib/test/leakers/test_dictself.py
Last change on this file was 391, checked in by , 11 years ago | |
---|---|
|
|
File size: 232 bytes |
Line | |
---|---|
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() |
Note:
See TracBrowser
for help on using the repository browser.