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

Method test_maxint64

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

Source from the content-addressed store, hash-verified

847 self.assert_is_copy(X(*args), self.loads(pickle2))
848
849 def test_maxint64(self):
850 maxint64 = (1 << 63) - 1
851 data = b'I' + str(maxint64).encode("ascii") + b'\n.'
852 got = self.loads(data)
853 self.assert_is_copy(maxint64, got)
854
855 # Try too with a bogus literal.
856 data = b'I' + str(maxint64).encode("ascii") + b'JUNK\n.'
857 self.check_unpickling_error(ValueError, data)
858
859 def test_unpickle_from_2x(self):
860 # Unpickle non-trivial data from Python 2.x.

Callers

nothing calls this directly

Calls 5

loadsMethod · 0.95
assert_is_copyMethod · 0.95
strFunction · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected