MCPcopy Create free account
hub / github.com/numpy/numpy / test_dumps

Method test_dumps

numpy/core/tests/test_multiarray.py:1793–1795  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1791 assert_equal(zs.view((dt, 1)).shape, (0,))
1792
1793 def test_dumps(self):
1794 zs = self._zeros(10, int)
1795 assert_equal(zs, pickle.loads(zs.dumps()))
1796
1797 def test_pickle(self):
1798 for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):

Callers

nothing calls this directly

Calls 2

_zerosMethod · 0.95
assert_equalFunction · 0.90

Tested by

no test coverage detected