def test_all_nan_no_numpy_compat(self, func_name, ndim):
        """This test checks that we return identity for all-NaN arrays.
        Note that scalar reductions (e.g., argmin/argmax) on arrays
        with identities will give different results for single and
        multiple processors.
        """

        settings.numpy_compat = False

        shape = (3,) * ndim
        in_num = num.zeros(shape)
        in_num.fill(num.nan)

        func_num = getattr(num, func_name)

        min_identity = np.iinfo(np.int64).min
        max_identity = np.iinfo(np.int64).max

        # this is a bit of a hack at this point
        assert min_identity == func_num(in_num) or max_identity == func_num(
            in_num
        )

        settings.numpy_compat.unset_value()
This test checks that we return identity for all-NaN arrays.
        Note that scalar reductions (e.g., argmin/argmax) on arrays
        with identities will give different results for single and
        multiple processors.
        
tests/integration/test_nanarg_reduction.py