Delete the items variable (and explain why).

This commit is contained in:
Michael W. Hudson 2004-08-03 10:17:34 +00:00
parent cbcff93d49
commit 3bfed9c225

View file

@ -687,6 +687,10 @@ def make_test_output():
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))