diff options
author | Georg Brandl <georg@python.org> | 2010-11-26 07:35:31 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-11-26 07:35:31 +0000 |
commit | 5ded791e835b7aea76b8a23e5e4113ef91556e77 (patch) | |
tree | 848d6eaf138b4daf1a199f6dda7e8e14a1162f4a /Lib/test/test_minidom.py | |
parent | 78f11edf3f934461191d4cec81fb4f13811c2be2 (diff) | |
download | cpython-git-5ded791e835b7aea76b8a23e5e4113ef91556e77.tar.gz |
Merged revisions 85546-85547 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85546 | georg.brandl | 2010-10-15 19:58:45 +0200 (Fr, 15 Okt 2010) | 1 line
#5762: fix handling of empty namespace in minidom, which would result in AttributeError on toxml().
........
r85547 | georg.brandl | 2010-10-15 20:00:35 +0200 (Fr, 15 Okt 2010) | 1 line
#6098: Refrain from claiming DOM level 3 conformance in minidom.
........
Diffstat (limited to 'Lib/test/test_minidom.py')
-rw-r--r-- | Lib/test/test_minidom.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index 90f7d51dd6..efb9240767 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -1483,6 +1483,13 @@ class MinidomTest(unittest.TestCase): doc.appendChild(doc.createComment("foo--bar")) self.assertRaises(ValueError, doc.toxml) + def testEmptyXMLNSValue(self): + doc = parseString("<element xmlns=''>\n" + "<foo/>\n</element>") + doc2 = parseString(doc.toxml()) + self.confirm(doc2.namespaceURI == xml.dom.EMPTY_NAMESPACE) + + def test_main(): run_unittest(MinidomTest) |