def test_slice_nan_no_numpy_compat(self, identity, func_name):
        """This test checks if we return identity for a slice that
        contains NaNs when CUPYNUMERIC_NUMPY_COMPATABILITY is set to 0.
        """
        settings.numpy_compat = False

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

        func_num = getattr(num, func_name)
        out_num = func_num(in_num, axis=1)

        assert out_num[0] == identity

        settings.numpy_compat.unset_value()
This test checks if we return identity for a slice that
        contains NaNs when CUPYNUMERIC_NUMPY_COMPATABILITY is set to 0.
        
tests/integration/test_nanarg_reduction.py