MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_pickle

Method test_pickle

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

Source from the content-addressed store, hash-verified

3648 copy.copy(it)
3649
3650 def test_pickle(self):
3651 a = ET.Element('a')
3652 it = a.iter()
3653 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
3654 with self.assertRaises((TypeError, pickle.PicklingError)):
3655 pickle.dumps(it, proto)
3656
3657
3658class 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