def test_out(self, func_name, ndim):
        """This test checks that the out argument is updated with the
        output"""

        shape = (3,) * ndim
        in_np = np.random.random(shape)
        in_num = num.array(in_np)

        func_num = getattr(num, func_name)
        func_np = getattr(np, func_name)

        axes = list(range(0, ndim - 1))
        for axis in axes:
            _shape = list(shape)
            _shape[axis] = 1

            out_num = num.empty(_shape, dtype=int)
            func_num(in_num, out=out_num, axis=axis, keepdims=True)

            out_np = np.empty(_shape, dtype=int)
            func_np(in_np, out=out_np, axis=axis, keepdims=True)

            assert np.array_equal(out_np, out_num)
This test checks that the out argument is updated with the
        output
tests/integration/test_nanarg_reduction.py