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

Method test_dumps

numpy/_core/tests/test_multiarray.py:2004–2006  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2002 assert_equal(zs.view((dt, 1)).shape, (0,))
2003
2004 def test_dumps(self):
2005 zs = self._zeros(10, int)
2006 assert_equal(zs, pickle.loads(zs.dumps()))
2007
2008 def test_pickle(self):
2009 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