

def test_generic_1d(self):
    a = np.arange(10)
    expr = 'a[:]'
    self.generic_wrap(expr, a=a)
    expr = 'a[:] + a'
    self.generic_wrap(expr, a=a)
    bad_expr = 'a[4:] + a'
    self.generic_wrap(bad_expr, a=a)
    a = np.arange(10)
    b = np.ones((1, 10))
    expr = 'a + b'
    self.generic_wrap(self, a=a, b=b)
    bad_expr = 'a[:5] + b'
    self.generic_wrap(bad_expr, a=a, b=b)

dataset/ETHPy150Open scipy/scipy/scipy/weave/tests/test_size_check.py TestExpressions.test_generic_1d/VarMisuse@94/132 `expr`->`self`