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

Method test_find_with_error

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

Source from the content-addressed store, hash-verified

3199 e.find(cls(e, 'x'))
3200
3201 def test_find_with_error(self):
3202 e = ET.Element('foo')
3203 e.extend([ET.Element('bar')])
3204 try:
3205 e.find(BadElementPath('x'))
3206 except ZeroDivisionError:
3207 pass
3208
3209 def test_findtext_with_mutating(self):
3210 for cls in [MutationDeleteElementPath, MutationClearElementPath]:

Callers

nothing calls this directly

Calls 3

extendMethod · 0.95
findMethod · 0.95
BadElementPathClass · 0.85

Tested by

no test coverage detected