]> granicus.if.org Git - postgresql/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:44:09 +0000 (13:44 -0500)
commita37ab812c7a2a99917e01f07ac4958712ea02637
tree57585d5edba94a3ad754e8c6e4f977295f91d174
parenta75efb483649a194d4578404ca294735829ff127
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