summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_minidom.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-12-14 18:20:22 (GMT)
committerFred Drake <fdrake@acm.org>2000-12-14 18:20:22 (GMT)
commit3277da0f33ff8e1e7e328c0dc491b1a635894252 (patch)
treeabe2d37560533fb5b30c7d4eebd848cc161471a7 /Lib/test/test_minidom.py
parentf7cf40d3319ef3f2f649781214c2511467ffd70e (diff)
downloadcpython-3277da0f33ff8e1e7e328c0dc491b1a635894252.zip
cpython-3277da0f33ff8e1e7e328c0dc491b1a635894252.tar.gz
cpython-3277da0f33ff8e1e7e328c0dc491b1a635894252.tar.bz2
Update the test suite to cover more ground.
This closes patch #102477.
Diffstat (limited to 'Lib/test/test_minidom.py')
-rw-r--r--Lib/test/test_minidom.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py
index 5bdee80..551e9f9 100644
--- a/Lib/test/test_minidom.py
+++ b/Lib/test/test_minidom.py
@@ -397,6 +397,14 @@ def testNormalize():
, "testNormalize -- result")
doc.unlink()
+ doc = parseString("<doc/>")
+ root = doc.documentElement
+ root.appendChild(doc.createTextNode(""))
+ doc.normalize()
+ confirm(len(root.childNodes) == 0,
+ "testNormalize -- single empty node removed")
+ doc.unlink()
+
def testSiblings():
doc = parseString("<doc><?pi?>text?<elm/></doc>")
root = doc.documentElement