(self, x, tmp_filename)
| 5401 | assert_equal(os.path.getsize(tmp_filename), d.nbytes * 2) |
| 5402 | |
| 5403 | def test_io_open_buffered_fromfile(self, x, tmp_filename): |
| 5404 | # gh-6632 |
| 5405 | x.tofile(tmp_filename) |
| 5406 | with io.open(tmp_filename, 'rb', buffering=-1) as f: |
| 5407 | y = np.fromfile(f, dtype=x.dtype) |
| 5408 | assert_array_equal(y, x.flat) |
| 5409 | |
| 5410 | def test_file_position_after_fromfile(self, tmp_filename): |
| 5411 | # gh-4118 |
nothing calls this directly
no test coverage detected