From: Martin v. Löwis Date: Mon, 9 May 2011 06:19:13 +0000 (+0200) Subject: Issue 11164: Remove obsolete allnodes test from minidom test. X-Git-Tag: v2.7.2rc1~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=591c2dfa4227e91b5133cded00d3e5f4ee3e6045;p=thirdparty%2FPython%2Fcpython.git Issue 11164: Remove obsolete allnodes test from minidom test. Patch by Arfrever Frehtes Taifersar Arahesis. --- diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index efb924076709..7b7524a1225c 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -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) diff --git a/Misc/NEWS b/Misc/NEWS index 08d15308bc73..13778650c669 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -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.