]> git.ipfire.org Git - thirdparty/postgresql.git/commit
PL/Python: Make tests pass with Python 3.5
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 3 Jun 2015 23:52:08 +0000 (19:52 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 14 Nov 2015 18:43:43 +0000 (13:43 -0500)
commitf1b898759f4936e9185698e8624da832a99b933e
tree9ee1759ee890753d0d0dc2b15c4a60c5aaad2be6
parent87cdfeb18ae0fe298b6f405718cbe97eaed190d3
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.
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