Commit fa7b5e3b authored by Kevin Modzelewski's avatar Kevin Modzelewski

Try to make some more weakref tests more robust

parent 06a07a2c
......@@ -19,4 +19,10 @@ def fact(n):
w = doStuff()
fact(10) # try to clear some memory
def recurse(f, n):
if n:
return recurse(f, n - 1)
return f()
recurse(gc.collect, 50)
gc.collect()
......@@ -21,6 +21,12 @@ def getWR():
wr = getWR()
fact(100) # try to clear some memory
def recurse(f, n):
if n:
return recurse(f, n - 1)
return f()
recurse(gc.collect, 50)
gc.collect()
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment