[Python-checkins] cpython (2.7): Issue 11164: Remove obsolete allnodes test from minidom test.

martin.v.loewis python-checkins at python.org
Mon May 9 08:19:50 CEST 2011


http://hg.python.org/cpython/rev/6c7984bae459
changeset: 69970:6c7984bae459
branch: 2.7
parent: 69958:3cbbb2a7c56d
user: Martin v. Löwis <martin at v.loewis.de>
date: Mon May 09 08:19:13 2011 +0200
summary:
 Issue 11164: Remove obsolete allnodes test from minidom test.
Patch by Arfrever Frehtes Taifersar Arahesis.
files:
 Lib/test/test_minidom.py | 20 --------------------
 Misc/NEWS | 2 ++
 2 files changed, 2 insertions(+), 20 deletions(-)
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py
--- a/Lib/test/test_minidom.py
+++ b/Lib/test/test_minidom.py
@@ -46,26 +46,6 @@
 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
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -77,6 +77,8 @@
 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.
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /