Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> I'm looking into the regression test failures that appear to be minor
> output differences.
gaur (python 2.5) is showing a different output pathology:
*** 246,253 ****
return x
$$;
SELECT test1inf();
! ERROR: could not convert value "inf" to jsonb
! CONTEXT: while creating return value
PL/Python function "test1inf"
-- test python -infinity -> jsonb
CREATE FUNCTION test2inf() RETURNS jsonb
--- 246,255 ----
return x
$$;
SELECT test1inf();
! ERROR: ValueError: invalid literal for float(): inf
! CONTEXT: Traceback (most recent call last):
! PL/Python function "test1inf", line 2, in <module>
! x = float('inf')
PL/Python function "test1inf"
-- test python -infinity -> jsonb
CREATE FUNCTION test2inf() RETURNS jsonb
***************
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=gaur&dt=2018-03-31%2002%3A50%3A13
regards, tom lane