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

Method pickle_test

Lib/test/test_ipaddress.py:90–95  ·  view source on GitHub ↗
(self, addr)

Source from the content-addressed store, hash-verified

88 self.assertRaises(TypeError, bytes, self.factory(1))
89
90 def pickle_test(self, addr):
91 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
92 with self.subTest(proto=proto):
93 x = self.factory(addr)
94 y = pickle.loads(pickle.dumps(x, proto))
95 self.assertEqual(y, x)
96
97
98class CommonTestMixin_v4(CommonTestMixin):

Callers 4

test_pickleMethod · 0.80
test_pickleMethod · 0.80
test_pickleMethod · 0.80
test_pickleMethod · 0.80

Calls 5

subTestMethod · 0.45
factoryMethod · 0.45
loadsMethod · 0.45
dumpsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected