MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_treebuilder_start

Method test_treebuilder_start

Lib/test/test_xml_etree.py:3080–3090  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3078 e[:] = V()
3079
3080 def test_treebuilder_start(self):
3081 # Issue #27863
3082 def element_factory(x, y):
3083 return []
3084 b = ET.TreeBuilder(element_factory=element_factory)
3085
3086 b.start('tag', {})
3087 b.data('ABCD')
3088 self.assertRaises(AttributeError, b.start, 'tag2', {})
3089 del b
3090 gc_collect()
3091
3092 def test_treebuilder_end(self):
3093 # Issue #27863

Callers

nothing calls this directly

Calls 4

startMethod · 0.95
dataMethod · 0.95
gc_collectFunction · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected