

def generic_wrap(self, a, expr):
    desired = np.array(eval(expr).shape)
    try:
        self.generic_check(a, expr, desired)
    except IndexError:
        if (0 not in desired):
            msg = ('%s raised IndexError in dummy_array, but forms\nvalid array shape -> %s' % (expr, str(desired)))
            raise AttributeError(expr)

dataset/ETHPy150Open scipy/scipy/scipy/weave/tests/test_size_check.py TestDummyArrayIndexing.generic_wrap/VarMisuse@77/120 `msg`->`expr`