(self, tmp_path)
| 51 | assert_equal(newfp.flags.writeable, False) |
| 52 | |
| 53 | def test_open_with_filename(self, tmp_path): |
| 54 | tmpname = tmp_path / 'mmap' |
| 55 | fp = memmap(tmpname, dtype=self.dtype, mode='w+', |
| 56 | shape=self.shape) |
| 57 | fp[:] = self.data[:] |
| 58 | del fp |
| 59 | |
| 60 | def test_unnamed_file(self): |
| 61 | with TemporaryFile() as f: |