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

Method test_recursive_repr

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

Source from the content-addressed store, hash-verified

3009
3010 @support.infinite_recursion(25)
3011 def test_recursive_repr(self):
3012 # Issue #25455
3013 e = ET.Element('foo')
3014 with swap_attr(e, 'tag', e):
3015 with self.assertRaises(RuntimeError):
3016 repr(e) # Should not crash
3017
3018 def test_element_get_text(self):
3019 # Issue #27863

Callers

nothing calls this directly

Calls 2

swap_attrFunction · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected