pgsql: PL/Python: Make tests pass with Python 3.5

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: PL/Python: Make tests pass with Python 3.5
Date: 2015-08-14 04:02:15
Message-ID: E1ZQ6C7-0005Rw-Qd@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

PL/Python: Make tests pass with Python 3.5

The error message wording for AttributeError has changed in Python 3.5.
For the plpython_error test, add a new expected file. In the
plpython_subtransaction test, we didn't really care what the exception
is, only that it is something coming from Python. So use a generic
exception instead, which has a message that doesn't vary across
versions.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f16d52269a196f7f303abe3b978d95ade265f05f

Modified Files
--------------
src/pl/plpython/expected/README | 1 +
src/pl/plpython/expected/plpython_error_5.out | 428 ++++++++++++++++++++
.../plpython/expected/plpython_subtransaction.out | 12 +-
.../expected/plpython_subtransaction_0.out | 8 +-
.../expected/plpython_subtransaction_5.out | 8 +-
src/pl/plpython/sql/plpython_subtransaction.sql | 4 +-
6 files changed, 445 insertions(+), 16 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2015-08-14 06:32:17 Re: pgsql: Allow pg_create_physical_replication_slot() to reserve WAL.
Previous Message Alvaro Herrera 2015-08-13 22:40:43 Re: [COMMITTERS] pgsql: Re-add BRIN isolation test