]> granicus.if.org Git - python/commitdiff
Add xml declaration into toxml testcase.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 6 Feb 2001 01:16:48 +0000 (01:16 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 6 Feb 2001 01:16:48 +0000 (01:16 +0000)
Lib/test/test_minidom.py

index 002b03670cbfaf9d3fccb330e895bc46b200d42b..457480349a48eb68b3982a6d09d540666d1443c0 100644 (file)
@@ -272,7 +272,7 @@ def testAttributeRepr():
 def testTextNodeRepr(): pass
 
 def testWriteXML():
-    str = '<a b="c"/>'
+    str = '<?xml version="1.0" ?>\n<a b="c"/>'
     dom = parseString(str)
     domstr = dom.toxml()
     dom.unlink()