mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
Delete the items variable (and explain why).
This commit is contained in:
parent
cbcff93d49
commit
3bfed9c225
1 changed files with 4 additions and 0 deletions
|
@ -687,6 +687,10 @@ items.sort()
|
||||||
for (name, value) in items:
|
for (name, value) in items:
|
||||||
if name[ : 5] == "test_":
|
if name[ : 5] == "test_":
|
||||||
confirm(value(), name)
|
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:
|
if verbose:
|
||||||
print "%d tests, %d failures" % (tests, len(failures))
|
print "%d tests, %d failures" % (tests, len(failures))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue