From 3bfed9c22547d1f950bb4bcbb54acae894e9b343 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Tue, 3 Aug 2004 10:17:34 +0000 Subject: Delete the items variable (and explain why). --- Lib/test/test_sax.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_sax.py b/Lib/test/test_sax.py index 8786094..210ca19 100644 --- a/Lib/test/test_sax.py +++ b/Lib/test/test_sax.py @@ -687,6 +687,10 @@ items.sort() for (name, value) in items: if name[ : 5] == "test_": confirm(value(), name) +# We delete the items variable so that the assignment to items above +# doesn't pick up the old value of items (which messes with attempts +# to find reference leaks). +del items if verbose: print "%d tests, %d failures" % (tests, len(failures)) -- cgit v0.12