(self, x, tmp_filename)
| 5374 | assert_raises(OSError, np.fromfile, f, dtype=x.dtype) |
| 5375 | |
| 5376 | def test_io_open_unbuffered_fromfile(self, x, tmp_filename): |
| 5377 | # gh-6632 |
| 5378 | x.tofile(tmp_filename) |
| 5379 | with io.open(tmp_filename, 'rb', buffering=0) as f: |
| 5380 | y = np.fromfile(f, dtype=x.dtype) |
| 5381 | assert_array_equal(y, x.flat) |
| 5382 | |
| 5383 | def test_largish_file(self, tmp_filename): |
| 5384 | # check the fallocate path on files > 16MB |
nothing calls this directly
no test coverage detected