diff options
author | Eli Bendersky <eliben@gmail.com> | 2013-05-19 16:24:43 (GMT) |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2013-05-19 16:24:43 (GMT) |
commit | c4e98a6a9bb73fb0bc1ea3d2d6fb63107416cddc (patch) | |
tree | af114b06709ec5dece3b9972945f5c4af781eccb /Lib/test/test_xml_etree.py | |
parent | 46955b2d30c0185d6471ce42c7766633b499e232 (diff) | |
download | cpython-c4e98a6a9bb73fb0bc1ea3d2d6fb63107416cddc.zip cpython-c4e98a6a9bb73fb0bc1ea3d2d6fb63107416cddc.tar.gz cpython-c4e98a6a9bb73fb0bc1ea3d2d6fb63107416cddc.tar.bz2 |
Cleanup more old ET library leftovers
Diffstat (limited to 'Lib/test/test_xml_etree.py')
-rw-r--r-- | Lib/test/test_xml_etree.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py index 2636da3..2222c86 100644 --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -240,7 +240,6 @@ class ElementTreeTest(unittest.TestCase): self.assertEqual(ET.XML, ET.fromstring) self.assertEqual(ET.PI, ET.ProcessingInstruction) - self.assertEqual(ET.XMLParser, ET.XMLTreeBuilder) def test_simpleops(self): # Basic method sanity checks. @@ -433,15 +432,6 @@ class ElementTreeTest(unittest.TestCase): ' <empty-element />\n' '</root>') - parser = ET.XMLTreeBuilder() # 1.2 compatibility - parser.feed(data) - self.serialize_check(parser.close(), - '<root>\n' - ' <element key="value">text</element>\n' - ' <element>text</element>tail\n' - ' <empty-element />\n' - '</root>') - target = ET.TreeBuilder() parser = ET.XMLParser(target=target) parser.feed(data) @@ -1407,7 +1397,7 @@ class BugsTest(unittest.TestCase): # Don't crash when using custom entities. ENTITIES = {'rsquo': '\u2019', 'lsquo': '\u2018'} - parser = ET.XMLTreeBuilder() + parser = ET.XMLParser() parser.entity.update(ENTITIES) parser.feed("""<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE patent-application-publication SYSTEM "pap-v15-2001-01-31.dtd" []> |