mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
bf89f21df0
commit
36aa0e1877
12
tests/80_gc.py
Normal file
12
tests/80_gc.py
Normal file
@ -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()
|
Loading…
x
Reference in New Issue
Block a user