]> granicus.if.org Git - python/commitdiff
Delete the items variable (and explain why).
authorMichael W. Hudson <mwh@python.net>
Tue, 3 Aug 2004 10:17:34 +0000 (10:17 +0000)
committerMichael W. Hudson <mwh@python.net>
Tue, 3 Aug 2004 10:17:34 +0000 (10:17 +0000)
Lib/test/test_sax.py

index 8786094a974e9c8b3564682452d13b9a39c3fe6f..210ca196660d21cca4675ea9ec96b12313faa6f8 100644 (file)
@@ -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))