def METHOD_NAME(self):
    # gh-12653
    with pytest.raises(ValueError, match='empty file'):
        memmap(self.tmpfp, shape=(0,4), mode='w+')
    self.tmpfp.write(b'\0')
    # ok now the file is not empty
    memmap(self.tmpfp, shape=(0,4), mode='w+')