[Python-checkins] CVS: python/dist/src/Lib/test test_pickle.py,1.2,1.3
Neil Schemenauer
python-dev@python.org
Fri, 22 Sep 2000 08:30:20 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv26299/Lib/test
Modified Files:
test_pickle.py
Log Message:
- plug a memory leak due to circular lists
Index: test_pickle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_pickle.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** test_pickle.py 2000/09/15 15:14:51 1.2
--- test_pickle.py 2000/09/22 15:30:16 1.3
***************
*** 81,84 ****
--- 81,87 ----
if x2 == r: print "ok"
else: print "bad"
+ # don't create cyclic garbage
+ del x2[0]
+ del r[0]
# Test protection against closed files