pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove contrib/jsonb_plpython's tests for infinity and NaN conve
Date: Mon, 02 Apr 2018 16:36:30 +0000
Message-ID: <E1f32Ra-0005w1-FD@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6278a2a262b63faaf47eb2371f6bcb5b6e3ff118

Modified Files
--------------
contrib/jsonb_plpython/expected/jsonb_plpython.out | 40 ----------------------
contrib/jsonb_plpython/sql/jsonb_plpython.sql      | 35 -------------------
2 files changed, 75 deletions(-)



Message-ID: <E1f32Ra-0005w1-FD@gemulon.postgresql.org>
Permalink:  ../E1f32Ra-0005w1-FD@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f32Ra-0005w1-FD@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Remove contrib/jsonb_plpython's tests for infinity and NaN conve
  In-Reply-To: <E1f32Ra-0005w1-FD@gemulon.postgresql.org>
  References: <E1f32Ra-0005w1-FD@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox