'Passing the output array as a keyword argument (issue #1867).'

def test_vectorize_output_kwarg(self):

    def check(ufunc):
        a = np.arange(10, 16, dtype='int32')
        out = np.zeros_like(a)
        got = ufunc(a, a, out=out)
        self.assertIs(got, out)
        self.assertPreciseEqual(out, (a + a))
        with self.assertRaises(TypeError):
            ufunc(a, a, zzz=out)
    ufunc = vectorize(['int32(int32,    int32)'], nopython=True)(add)
    check(ufunc)
    ufunc = vectorize(nopython=True)(add)
    check(ufunc)
    check(ufunc)
