]> granicus.if.org Git - postgresql/commit
PL/Python: Make tests pass with Python 3.5
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 14 Nov 2015 17:44:38 +0000 (12:44 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 14 Nov 2015 18:53:26 +0000 (13:53 -0500)
commit82076c1e40eb93717ede3c82f59e7711090b63a8
treee879a7cc21006eaba234440e4665b5456225f610
parentb4c4220ede3048662c746123b8af2a9101a1b313
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