Issue 11164: Remove obsolete allnodes test from minidom test.

Patch by Arfrever Frehtes Taifersar Arahesis.
This commit is contained in:
Martin v. Löwis 2011-05-09 08:19:13 +02:00
parent 5c5d7e2511
commit 591c2dfa42
2 changed files with 2 additions and 20 deletions

View File

@ -46,26 +46,6 @@ def create_doc_with_doctype():
return doc
class MinidomTest(unittest.TestCase):
def tearDown(self):
try:
Node.allnodes
except AttributeError:
# We don't actually have the minidom from the standard library,
# but are picking up the PyXML version from site-packages.
pass
else:
self.confirm(len(Node.allnodes) == 0,
"assertion: len(Node.allnodes) == 0")
if len(Node.allnodes):
print "Garbage left over:"
if verbose:
print Node.allnodes.items()[0:10]
else:
# Don't print specific nodes if repeatable results
# are needed
print len(Node.allnodes)
Node.allnodes = {}
def confirm(self, test, testname = "Test"):
self.assertTrue(test, testname)

View File

@ -77,6 +77,8 @@ Core and Builtins
Library
-------
- Issue #11164: Remove obsolete allnodes test from minidom test.
- Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch
by Kasun Herath.