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

Method test_reduce_ex

Lib/test/test_array.py:322–327  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

320 self.assertEqual(a, b)
321
322 def test_reduce_ex(self):
323 a = array.array(self.typecode, self.example)
324 for protocol in range(3):
325 self.assertIs(a.__reduce_ex__(protocol)[0], array.array)
326 for protocol in range(3, pickle.HIGHEST_PROTOCOL + 1):
327 self.assertIs(a.__reduce_ex__(protocol)[0], array_reconstructor)
328
329 def test_pickle(self):
330 for protocol in range(pickle.HIGHEST_PROTOCOL + 1):

Callers

nothing calls this directly

Calls 2

assertIsMethod · 0.45
__reduce_ex__Method · 0.45

Tested by

no test coverage detected