MCPcopy Index your code
hub / github.com/python/cpython / test_treebuilder_start

Method test_treebuilder_start

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

Source from the content-addressed store, hash-verified

3123 e[:] = V()
3124
3125 def test_treebuilder_start(self):
3126 # Issue #27863
3127 def element_factory(x, y):
3128 return []
3129 b = ET.TreeBuilder(element_factory=element_factory)
3130
3131 b.start('tag', {})
3132 b.data('ABCD')
3133 self.assertRaises(AttributeError, b.start, 'tag2', {})
3134 del b
3135 gc_collect()
3136
3137 def test_treebuilder_end(self):
3138 # 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