]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue 11164: Remove obsolete allnodes test from minidom test.
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 9 May 2011 06:19:13 +0000 (08:19 +0200)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 9 May 2011 06:19:13 +0000 (08:19 +0200)
Patch by Arfrever Frehtes Taifersar Arahesis.

Lib/test/test_minidom.py
Misc/NEWS

index efb924076709f590bfa8ac5f7ba6a3059072fb88..7b7524a1225ca463db6ee95de43ca78f43d0a463 100644 (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)
 
index 08d15308bc736b3e7adb02cb8fc30118139fcb43..13778650c669ef667c11e6a80b7bb2659b52ce76 100644 (file)
--- 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.