summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_minidom.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-05-09 06:10:38 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2011-05-09 06:10:38 (GMT)
commit867754e3e3c907f87d1bb0282df628deb392cd62 (patch)
tree3a5acb5ba081b355ea94fa237ec940c47c0d4418 /Lib/test/test_minidom.py
parent8ffaa1049c8e3e18b7615f4eecc9dfd71495f3ba (diff)
parent2f48d892d4036b500f5b79d152b3166b4d205dc9 (diff)
downloadcpython-867754e3e3c907f87d1bb0282df628deb392cd62.zip
cpython-867754e3e3c907f87d1bb0282df628deb392cd62.tar.gz
cpython-867754e3e3c907f87d1bb0282df628deb392cd62.tar.bz2
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 4c2b34a..200b95d 100644
--- a/Lib/test/test_minidom.py
+++ b/Lib/test/test_minidom.py
@@ -45,26 +45,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)