summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_pickle.py3
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