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.
Showing
- src/pl/plpython/expected/README 1 addition, 0 deletionssrc/pl/plpython/expected/README
- src/pl/plpython/expected/plpython_error_5.out 403 additions, 0 deletionssrc/pl/plpython/expected/plpython_error_5.out
- src/pl/plpython/expected/plpython_subtransaction.out 6 additions, 6 deletionssrc/pl/plpython/expected/plpython_subtransaction.out
- src/pl/plpython/expected/plpython_subtransaction_0.out 4 additions, 4 deletionssrc/pl/plpython/expected/plpython_subtransaction_0.out
- src/pl/plpython/expected/plpython_subtransaction_5.out 4 additions, 4 deletionssrc/pl/plpython/expected/plpython_subtransaction_5.out
- src/pl/plpython/sql/plpython_subtransaction.sql 2 additions, 2 deletionssrc/pl/plpython/sql/plpython_subtransaction.sql
Loading
Please register or sign in to comment