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

Method test_find_with_error

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

Source from the content-addressed store, hash-verified

3244 e.find(cls(e, 'x'))
3245
3246 def test_find_with_error(self):
3247 e = ET.Element('foo')
3248 e.extend([ET.Element('bar')])
3249 try:
3250 e.find(BadElementPath('x'))
3251 except ZeroDivisionError:
3252 pass
3253
3254 def test_findtext_with_mutating(self):
3255 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