pgsql: Tweak tests to support Python 3.7

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Tweak tests to support Python 3.7
Date: 2018-05-06 03:58:49
Message-ID: E1fFAoz-0006CG-SH@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Tweak tests to support Python 3.7

Python 3.7 removes the trailing comma in the repr() of
BaseException (see <https://bugs.python.org/issue30399>), leading to
test output differences. Work around that by composing the equivalent
test output in a more manual way.

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8f1787a8f3f3584c70255372c1034d8990eaed9b

Modified Files
--------------
src/pl/plpython/expected/plpython_subtransaction.out | 6 +++---
src/pl/plpython/expected/plpython_subtransaction_0.out | 2 +-
src/pl/plpython/expected/plpython_subtransaction_5.out | 2 +-
src/pl/plpython/sql/plpython_subtransaction.sql | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2018-05-06 11:42:46 pgsql: Clear severity 5 perlcritic warnings from vcregress.pl
Previous Message Tom Lane 2018-05-05 20:23:13 pgsql: Fix bootstrap parser so that its keywords are unreserved words.