MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_reduce_ex

Method test_reduce_ex

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

Source from the content-addressed store, hash-verified

288 self.assertEqual(a, b)
289
290 def test_reduce_ex(self):
291 a = array.array(self.typecode, self.example)
292 for protocol in range(3):
293 self.assertIs(a.__reduce_ex__(protocol)[0], array.array)
294 for protocol in range(3, pickle.HIGHEST_PROTOCOL + 1):
295 self.assertIs(a.__reduce_ex__(protocol)[0], array_reconstructor)
296
297 def test_pickle(self):
298 for protocol in range(pickle.HIGHEST_PROTOCOL + 1):

Callers 1

test_reduce_exMethod · 0.45

Calls 2

assertIsMethod · 0.45
__reduce_ex__Method · 0.45

Tested by

no test coverage detected