summaryrefslogtreecommitdiff
path: root/Lib/test/test_sax.py
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-08-03 10:17:34 +0000
committerMichael W. Hudson <mwh@python.net>2004-08-03 10:17:34 +0000
commit556875cd67bce5825659105d98de0196ca9dc752 (patch)
tree7685df030c2c3bfa73baa7ef2cbb0fad41501350 /Lib/test/test_sax.py
parenta8579a542212460a491ef6510c11535860effafe (diff)
downloadcpython-556875cd67bce5825659105d98de0196ca9dc752.tar.gz
Delete the items variable (and explain why).
Diffstat (limited to 'Lib/test/test_sax.py')
-rw-r--r--Lib/test/test_sax.py4
1 files changed, 4 insertions, 0 deletions
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))