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

Method test_empty_files_text

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

Source from the content-addressed store, hash-verified

6134 assert d.shape == (0,)
6135
6136 def test_empty_files_text(self, tmp_path, param_filename):
6137 tmp_filename = normalize_filename(tmp_path, param_filename)
6138 with open(tmp_filename, 'w') as f:
6139 pass
6140 y = np.fromfile(tmp_filename)
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)

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
normalize_filenameFunction · 0.85
openFunction · 0.85

Tested by

no test coverage detected