(self, tmp_path)
| 44 | assert_equal(newfp.flags.writeable, False) |
| 45 | |
| 46 | def test_open_with_filename(self, tmp_path): |
| 47 | tmpname = tmp_path / 'mmap' |
| 48 | fp = memmap(tmpname, dtype=self.dtype, mode='w+', |
| 49 | shape=self.shape) |
| 50 | fp[:] = self.data[:] |
| 51 | del fp |
| 52 | |
| 53 | def test_unnamed_file(self): |
| 54 | with TemporaryFile() as f: |