(self, tmp_path, param_filename)
| 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) |
| 6152 | x = self._create_data() |
| 6153 | with open(tmp_filename, 'wb') as f: |
| 6154 | x.tofile(f) |
| 6155 | # NB. doesn't work with flush+seek, due to use of C stdio |
| 6156 | with open(tmp_filename, 'rb') as f: |
| 6157 | y = np.fromfile(f, dtype=x.dtype) |
| 6158 | assert_array_equal(y, x.flat) |
| 6159 | |
| 6160 | def test_roundtrip(self, tmp_path, param_filename): |
| 6161 | tmp_filename = normalize_filename(tmp_path, param_filename) |
nothing calls this directly
no test coverage detected