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

Method test_findall_with_error

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

Source from the content-addressed store, hash-verified

3288 e.findall(cls(e, 'x'))
3289
3290 def test_findall_with_error(self):
3291 e = ET.Element('foo')
3292 e.extend([ET.Element('bar')])
3293 try:
3294 e.findall(BadElementPath('x'))
3295 except ZeroDivisionError:
3296 pass
3297
3298
3299class ElementTreeTypeTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

extendMethod · 0.95
findallMethod · 0.95
BadElementPathClass · 0.85

Tested by

no test coverage detected