pgsql: PL/Python: Make tests pass with Python 3.5 - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: PL/Python: Make tests pass with Python 3.5
Date
Msg-id E1ZxfyL-0008If-KL@gemulon.postgresql.org
Whole thread Raw
List 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
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/82076c1e40eb93717ede3c82f59e7711090b63a8

Modified Files
--------------
src/pl/plpython/expected/README                    |    1 +
src/pl/plpython/expected/plpython_error_5.out      |  403 ++++++++++++++++++++
.../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, 420 insertions(+), 16 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: PL/Python: Make tests pass with Python 3.5
Next
From: Peter Eisentraut
Date:
Subject: pgsql: PL/Python: Make tests pass with Python 3.5