diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-11-09 02:36:59 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-11-09 02:36:59 (GMT) |
commit | ec30b3dd8c53b816d6c3f787ccc53772b62c161b (patch) | |
tree | 82c225245275ac7366ef696a7fda90b7f4b525c5 /Lib/test/test_xml_etree.py | |
parent | 92665ab8c7aa6bcf393fc53ea7227b7768d3bb8b (diff) | |
download | cpython-ec30b3dd8c53b816d6c3f787ccc53772b62c161b.zip cpython-ec30b3dd8c53b816d6c3f787ccc53772b62c161b.tar.gz cpython-ec30b3dd8c53b816d6c3f787ccc53772b62c161b.tar.bz2 |
Fix Issue10205 - XML QName error when different tags have same QName.
Diffstat (limited to 'Lib/test/test_xml_etree.py')
-rw-r--r-- | Lib/test/test_xml_etree.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py index e802359..08f7988 100644 --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -1119,6 +1119,11 @@ def qname(): >>> elem = ET.Element(ET.QName("uri", "tag")) >>> serialize(elem) # 1.3 '<ns0:tag xmlns:ns0="uri" />' + >>> elem = ET.Element(ET.QName("uri", "tag")) + >>> subelem = ET.SubElement(elem, ET.QName("uri", "tag1")) + >>> subelem = ET.SubElement(elem, ET.QName("uri", "tag2")) + >>> serialize(elem) # 1.4 + '<ns0:tag xmlns:ns0="uri"><ns0:tag1 /><ns0:tag2 /></ns0:tag>' 2) decorated attributes |