- plug a memory leak due to circular lists

This commit is contained in:
Neil Schemenauer 2000-09-22 15:30:16 +00:00
parent d569f23da9
commit ef5f2b9dbb
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ def dotest(pickle):
x2 = pickle.loads(s)
if x2 == r: print "ok"
else: print "bad"
# don't create cyclic garbage
del x2[0]
del r[0]
# Test protection against closed files
import tempfile, os