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

Method test_long1

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

Source from the content-addressed store, hash-verified

3342 self.fail("expected bad protocol number to raise ValueError")
3343
3344 def test_long1(self):
3345 x = 12345678910111213141516178920
3346 for proto in protocols:
3347 s = self.dumps(x, proto)
3348 y = self.loads(s)
3349 self.assert_is_copy(x, y)
3350 self.assertEqual(opcode_in_pickle(pickle.LONG1, s), proto >= 2)
3351
3352 def test_long4(self):
3353 x = 12345678910111213141516178920 << (256*8)

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