MCPcopy Index your code
hub / github.com/numpy/numpy / test_roundtrip_dump_pathlib

Method test_roundtrip_dump_pathlib

numpy/_core/tests/test_multiarray.py:6167–6173  ·  view source on GitHub ↗
(self, tmp_path, param_filename)

Source from the content-addressed store, hash-verified

6165 assert_array_equal(y, x.flat)
6166
6167 def test_roundtrip_dump_pathlib(self, tmp_path, param_filename):
6168 tmp_filename = normalize_filename(tmp_path, param_filename)
6169 x = self._create_data()
6170 p = pathlib.Path(tmp_filename)
6171 x.dump(p)
6172 y = np.load(p, allow_pickle=True)
6173 assert_array_equal(y, x)
6174
6175 def test_roundtrip_binary_str(self):
6176 x = self._create_data()

Callers

nothing calls this directly

Calls 3

_create_dataMethod · 0.95
assert_array_equalFunction · 0.90
normalize_filenameFunction · 0.85

Tested by

no test coverage detected