git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: beff4bb) | patch
Remove contrib/jsonb_plpython's tests for infinity and NaN conversions.
Mon, 2 Apr 2018 16:36:21 +0000 (12:36 -0400)
Mon, 2 Apr 2018 16:36:21 +0000 (12:36 -0400)
commit 6278a2a262b63faaf47eb2371f6bcb5b6e3ff118
Remove contrib/jsonb_plpython's tests for infinity and NaN conversions.

These tests don't work reliably with pre-2.6 Python versions, since
Python code like float('inf') was not guaranteed to work before that,
even granting an IEEE-compliant platform.

Since there's no explicit handling of these cases in jsonb_plpython,
we're not adding any real code coverage by testing them, and thus
it doesn't seem to make sense to go to any great lengths to work
around the test instability.

Discussion: https://postgr.es/m/E1f1AMU-00031c-9N@gemulon.postgresql.org
contrib/jsonb_plpython/expected/jsonb_plpython.out diff | blob | blame | history
contrib/jsonb_plpython/sql/jsonb_plpython.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /