def test_disallowed_dtypes(self, func_name, ndim, disallowed_dtype):
        """This test checks if we raise an error for types that are
        disallowed."""
        shape = (3,) * ndim
        in_num = num.random.random(shape).astype(disallowed_dtype)

        func_num = getattr(num, func_name)

        expected_exp = NotImplementedError
        msg = r"operation is not supported for complex64 and complex128 types"
        with pytest.raises(expected_exp, match=msg):
            func_num(in_num)
This test checks if we raise an error for types that are
        disallowed.
tests/integration/test_nan_reduction.py