def test_slice_nan_numpy_compat(self, func_name):
        """This test checks if nanmin and nanmax return nan for
        a slice that contains all-NaNs
        """
        settings.numpy_compat = True

        shape = (3, 3)
        in_num = num.random.random(shape)

        in_num[0, :] = num.nan
        func_num = getattr(num, func_name)
        out_num = func_num(in_num, axis=1)

        assert num.any(num.isnan(out_num))

        settings.numpy_compat.unset_value()
This test checks if nanmin and nanmax return nan for
        a slice that contains all-NaNs
        
tests/integration/test_nan_reduction.py