Commit 6007daed authored by Kevin Modzelewski's avatar Kevin Modzelewski

Add weakref workaround to another test

parent 95ad7ffc
......@@ -11,9 +11,11 @@ def f(n):
return weakref.ref(p)
import weakref
r = f(20)
l = []
for i in xrange(5):
l.append(f(20))
import gc
gc.collect()
print r()
assert any(r() is None for r in l)
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