From: Michael W. Hudson Date: Tue, 3 Aug 2004 10:17:34 +0000 (+0000) Subject: Delete the items variable (and explain why). X-Git-Tag: v2.4a2~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bfed9c22547d1f950bb4bcbb54acae894e9b343;p=python Delete the items variable (and explain why). --- diff --git a/Lib/test/test_sax.py b/Lib/test/test_sax.py index 8786094a97..210ca19666 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))