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

Method test_roundtrip_equality

Lib/test/pickletester.py:2491–2496  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2489 # XXX test __reduce__ protocol?
2490
2491 def test_roundtrip_equality(self):
2492 expected = self._testdata
2493 for proto in protocols:
2494 s = self.dumps(expected, proto)
2495 got = self.loads(s)
2496 self.assert_is_copy(expected, got)
2497
2498 # There are gratuitous differences between pickles produced by
2499 # pickle and cPickle, largely because cPickle starts PUT indices at

Callers

nothing calls this directly

Calls 3

assert_is_copyMethod · 0.80
dumpsMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected