PL/Python: Make tests pass with Python 3.5
Peter Eisentraut <peter_e@gmx.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/pl/plpython/expected/plpython_error_5.out | added | +403 −0 |
| src/pl/plpython/expected/plpython_subtransaction_0.out | modified | +4 −4 |
| src/pl/plpython/expected/plpython_subtransaction_5.out | modified | +4 −4 |
| src/pl/plpython/expected/plpython_subtransaction.out | modified | +6 −6 |
| src/pl/plpython/expected/README | modified | +1 −0 |
| src/pl/plpython/sql/plpython_subtransaction.sql | modified | +2 −2 |