blueloveTH 2 years ago
parent
commit
36aa0e1877
1 changed files with 12 additions and 0 deletions
  1. 12 0
      tests/80_gc.py

+ 12 - 0
tests/80_gc.py

@@ -0,0 +1,12 @@
+import gc
+
+def create_garbage():
+    a = [(1,2) for i in range(10000)]
+    return a
+
+create_garbage()
+gc.collect()
+
+create_garbage()
+create_garbage()
+create_garbage()