(self)
| 205 | assert_equal(mm.shape, (2,)) |
| 206 | |
| 207 | def test_empty_array(self): |
| 208 | # gh-12653 |
| 209 | with pytest.raises(ValueError, match='empty file'): |
| 210 | memmap(self.tmpfp, shape=(0,4), mode='w+') |
| 211 | |
| 212 | self.tmpfp.write(b'\0') |
| 213 | |
| 214 | # ok now the file is not empty |
| 215 | memmap(self.tmpfp, shape=(0,4), mode='w+') |