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

Method test_roundtrip_equality

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

Source from the content-addressed store, hash-verified

2590 # XXX test __reduce__ protocol?
2591
2592 def test_roundtrip_equality(self):
2593 if self.py_version < (3, 0):
2594 self.skipTest('"classic" classes are not interoperable with Python 2')
2595 expected = self._testdata
2596 for proto in protocols:
2597 s = self.dumps(expected, proto)
2598 got = self.loads(s)
2599 self.assert_is_copy(expected, got)
2600
2601 # There are gratuitous differences between pickles produced by
2602 # pickle and cPickle, largely because cPickle starts PUT indices at

Callers

nothing calls this directly

Calls 4

skipTestMethod · 0.80
assert_is_copyMethod · 0.80
dumpsMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected