def test_slice_nan_numpy_compat(self, func_name):
        """This test checks if we comply with the numpy when
        a slice contains only NaNs and CUPYNUMERIC_NUMPY_COMPATABILITY
        is set to 1.
        """
        settings.numpy_compat = True

        in_num = num.random.random((3, 3))
        in_num[0, ...] = num.nan

        func_num = getattr(num, func_name)

        expected_exp = ValueError
        with pytest.raises(expected_exp):
            func_num(in_num, axis=1)

        settings.numpy_compat.unset_value()
This test checks if we comply with the numpy when
        a slice contains only NaNs and CUPYNUMERIC_NUMPY_COMPATABILITY
        is set to 1.
        
tests/integration/test_nanarg_reduction.py