def generic_wrap(self,a,expr):
        desired = np.array(eval(expr).shape)
        try:
            self.generic_check(a,expr,desired)
        except __HOLE__:
            if 0 not in desired:
                msg = '%s raised IndexError in dummy_array, but forms\n' \
                      'valid array shape -> %s' % (expr, str(desired))
                raise AttributeError(msg)
dataset/ETHPy150Open scipy/scipy/scipy/weave/tests/test_size_check.py/TestDummyArrayIndexing.generic_wrap