summaryrefslogtreecommitdiff
path: root/Lib/test/test_minidom.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-05-09 08:12:19 +0200
committerMartin v. Löwis <martin@v.loewis.de>2011-05-09 08:12:19 +0200
commit529c9d398ac844b42da3d66ddb6e58ada49edac3 (patch)
treec5f65522dab79716399a903f27d019f8f031fe30 /Lib/test/test_minidom.py
parente64e1ae8b8a4318cfa195dce38d8220943cbc11b (diff)
parente642bef9e591dff62e9198d5f3a4c6164de14989 (diff)
downloadcpython-529c9d398ac844b42da3d66ddb6e58ada49edac3.tar.gz
merge 11164
Diffstat (limited to 'Lib/test/test_minidom.py')
-rw-r--r--Lib/test/test_minidom.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py
index acc48195b3..a3a2e357aa 100644
--- a/Lib/test/test_minidom.py
+++ b/Lib/test/test_minidom.py
@@ -42,26 +42,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(list(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)