def test_all_nans_no_numpy_compat(self, ndim, identity, func_name):
        """This test checks if we comply with the expected behavior when
        the array contains only NaNs for nanmin and nanmax.
        """
        settings.numpy_compat = False

        shape = (3,) * ndim
        in_num = num.random.random(shape)
        in_num[...] = np.nan

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

        assert out_num == identity

        settings.numpy_compat.unset_value()
This test checks if we comply with the expected behavior when
        the array contains only NaNs for nanmin and nanmax.
        
tests/integration/test_nan_reduction.py