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

Method test_treebuilder_end

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

Source from the content-addressed store, hash-verified

3090 gc_collect()
3091
3092 def test_treebuilder_end(self):
3093 # Issue #27863
3094 def element_factory(x, y):
3095 return []
3096 b = ET.TreeBuilder(element_factory=element_factory)
3097
3098 b.start('tag', {})
3099 b.data('ABCD')
3100 self.assertRaises(AttributeError, b.end, 'tag')
3101 del b
3102 gc_collect()
3103
3104 def test_deepcopy_clear(self):
3105 # Prevent crashes when __deepcopy__() clears the children list.

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