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

Method test_long4

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

Source from the content-addressed store, hash-verified

3350 self.assertEqual(opcode_in_pickle(pickle.LONG1, s), proto >= 2)
3351
3352 def test_long4(self):
3353 x = 12345678910111213141516178920 << (256*8)
3354 for proto in protocols:
3355 s = self.dumps(x, proto)
3356 y = self.loads(s)
3357 self.assert_is_copy(x, y)
3358 self.assertEqual(opcode_in_pickle(pickle.LONG4, s), proto >= 2)
3359
3360 def test_short_tuples(self):
3361 # Map (proto, len(tuple)) to expected opcode.

Callers

nothing calls this directly

Calls 5

opcode_in_pickleFunction · 0.85
assert_is_copyMethod · 0.80
dumpsMethod · 0.45
loadsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected