mirror of
https://github.com/python/cpython.git
synced 2025-08-28 20:56:54 +00:00
Add xml declaration into toxml testcase.
This commit is contained in:
parent
b417be2ad9
commit
fe28ca09a5
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ def testAttributeRepr():
|
||||||
def testTextNodeRepr(): pass
|
def testTextNodeRepr(): pass
|
||||||
|
|
||||||
def testWriteXML():
|
def testWriteXML():
|
||||||
str = '<a b="c"/>'
|
str = '<?xml version="1.0" ?>\n<a b="c"/>'
|
||||||
dom = parseString(str)
|
dom = parseString(str)
|
||||||
domstr = dom.toxml()
|
domstr = dom.toxml()
|
||||||
dom.unlink()
|
dom.unlink()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue