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

Method test_findtext_with_error

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

Source from the content-addressed store, hash-verified

3259 e.findtext(cls(e, 'x'))
3260
3261 def test_findtext_with_error(self):
3262 e = ET.Element('foo')
3263 e.extend([ET.Element('bar')])
3264 try:
3265 e.findtext(BadElementPath('x'))
3266 except ZeroDivisionError:
3267 pass
3268
3269 def test_findtext_with_falsey_text_attribute(self):
3270 root_elem = ET.Element('foo')

Callers

nothing calls this directly

Calls 3

extendMethod · 0.95
findtextMethod · 0.95
BadElementPathClass · 0.85

Tested by

no test coverage detected