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

Method test_empty_files_binary

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

Source from the content-addressed store, hash-verified

6141 assert_(y.size == 0, "Array not empty")
6142
6143 def test_empty_files_binary(self, tmp_path, param_filename):
6144 tmp_filename = normalize_filename(tmp_path, param_filename)
6145 with open(tmp_filename, 'wb') as f:
6146 pass
6147 y = np.fromfile(tmp_filename, sep=" ")
6148 assert_(y.size == 0, "Array not empty")
6149
6150 def test_roundtrip_file(self, tmp_path, param_filename):
6151 tmp_filename = normalize_filename(tmp_path, param_filename)

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
normalize_filenameFunction · 0.85
openFunction · 0.85

Tested by

no test coverage detected