pgsql: Make Python tests more portable - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Make Python tests more portable
Date
Msg-id E1Yz1An-0000yt-6Q@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Make Python tests more portable

Newer Python versions randomize the hash seed for dictionaries,
resulting in a random output order, which messes up the regression test
diffs.

Instead, use Python assert to compare the dictionaries with their
expected value.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/75f9d17638c9c6bec34f80326c35010c47924728

Modified Files
--------------
contrib/hstore_plpython/expected/hstore_plpython.out |   16 ++++------------
contrib/hstore_plpython/sql/hstore_plpython.sql      |    8 ++++----
2 files changed, 8 insertions(+), 16 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pgsql: Adjust initdb to also not consider fsync'ing failures fatal.
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Rename jsonb_replace to jsonb_set and allow it to add new values