diff options
author | Michael W. Hudson <mwh@python.net> | 2004-08-03 10:17:34 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2004-08-03 10:17:34 (GMT) |
commit | 3bfed9c22547d1f950bb4bcbb54acae894e9b343 (patch) | |
tree | 02e607856e5f5090ee655839406ecfbc86292fcf /Lib/test/test_sax.py | |
parent | cbcff93d49ad45a6bbdc331c0596ee4b5631dfe4 (diff) | |
download | cpython-3bfed9c22547d1f950bb4bcbb54acae894e9b343.zip cpython-3bfed9c22547d1f950bb4bcbb54acae894e9b343.tar.gz cpython-3bfed9c22547d1f950bb4bcbb54acae894e9b343.tar.bz2 |
Delete the items variable (and explain why).
Diffstat (limited to 'Lib/test/test_sax.py')
-rw-r--r-- | Lib/test/test_sax.py | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |