diff options
Diffstat (limited to 'Lib/test/dtracedata/gc.py')
-rw-r--r-- | Lib/test/dtracedata/gc.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/test/dtracedata/gc.py b/Lib/test/dtracedata/gc.py new file mode 100644 index 0000000..144a783 --- /dev/null +++ b/Lib/test/dtracedata/gc.py @@ -0,0 +1,13 @@ +import gc + +def start(): + gc.collect(0) + gc.collect(1) + gc.collect(2) + l = [] + l.append(l) + del l + gc.collect(2) + +gc.collect() +start() |