Commit bfc48cd0 authored by Eli Bendersky's avatar Eli Bendersky

Add a test that makes sure TreeBuilder can be passed element_factory in the

constructor. Marked as expectedFailure since it currently fails for the C
implementation.
parent 5cd04025
......@@ -1905,6 +1905,11 @@ class TreeBuilderTest(unittest.TestCase):
parser.feed(self.sample1)
self.assertIsNone(parser.close())
# XXX in _elementtree, the constructor of TreeBuilder expects no
# arguments
@unittest.expectedFailure
def test_element_factory(self):
tb = ET.TreeBuilder(element_factory=lambda: ET.Element())
@unittest.expectedFailure # XXX issue 14007 with C ElementTree
def test_doctype(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment