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

Method test_pickle

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

Source from the content-addressed store, hash-verified

3689 copy.copy(it)
3690
3691 def test_pickle(self):
3692 a = ET.Element('a')
3693 it = a.iter()
3694 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
3695 with self.assertRaises((TypeError, pickle.PicklingError)):
3696 pickle.dumps(it, proto)
3697
3698
3699class TreeBuilderTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

iterMethod · 0.95
assertRaisesMethod · 0.45
dumpsMethod · 0.45

Tested by

no test coverage detected