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

Method test_disallow_instantiation

Lib/test/test_xml_etree_c.py:201–204  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

199
200 @support.cpython_only
201 def test_disallow_instantiation(self):
202 root = cET.fromstring('<a></a>')
203 iter_type = type(root.iter())
204 support.check_disallow_instantiation(self, iter_type)
205
206
207@unittest.skipUnless(cET, 'requires _elementtree')

Callers

nothing calls this directly

Calls 2

fromstringMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected