def check_unary_nan(self, name, xp, dtype): a = xp.array( [-3, numpy.NAN, -1, numpy.NAN, 0, numpy.NAN, dtype('inf')], dtype=dtype) return (a,)