diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2000-09-22 15:30:16 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2000-09-22 15:30:16 (GMT) |
commit | ef5f2b9dbbfade547daf1e360371a59e80006462 (patch) | |
tree | 25c03fe72fec1263ffd4225fcf540e0c532b86a3 /Lib | |
parent | d569f23da94babd616751cd46eea38963e4edfa1 (diff) | |
download | cpython-ef5f2b9dbbfade547daf1e360371a59e80006462.zip cpython-ef5f2b9dbbfade547daf1e360371a59e80006462.tar.gz cpython-ef5f2b9dbbfade547daf1e360371a59e80006462.tar.bz2 |
- plug a memory leak due to circular lists
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_pickle.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_pickle.py b/Lib/test/test_pickle.py index ff9c467..3c81fdd 100644 --- a/Lib/test/test_pickle.py +++ b/Lib/test/test_pickle.py @@ -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 |