]> granicus.if.org Git - postgresql/commit
PL/Python: Make tests pass with Python 3.5
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Jan 2016 16:39:28 +0000 (11:39 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Jan 2016 16:39:28 +0000 (11:39 -0500)
commita66c1fcdd7e4291561c5cdebc1d02784050260e2
tree10e252f4cddf5e42a2cab0d77bed5407c2e044b7
parent6a1a44037b63e1c0e51dd2ca7374191c2f5362b1
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.

Back-patch of commit f16d52269a196f7f303abe3b978d95ade265f05f, which
was previously back-patched into 9.2-9.4, but missed 9.5.
src/pl/plpython/expected/README
src/pl/plpython/expected/plpython_error_5.out [new file with mode: 0644]
src/pl/plpython/expected/plpython_subtransaction.out
src/pl/plpython/expected/plpython_subtransaction_0.out
src/pl/plpython/expected/plpython_subtransaction_5.out
src/pl/plpython/sql/plpython_subtransaction.sql