8000 PL/Python: Make tests pass with Python 3.5 · postgrespro/postgres_cluster@f16d522 · GitHub
[go: up one dir, main page]

Skip to content {"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}

Commit f16d522

Browse files
committed
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.
1 parent d67616c commit f16d522

File tree

6 files changed

+445
-16
lines changed

6 files changed

+445
-16
lines changed

src/pl/plpython/expected/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Guide to alternative expected files:
22

33
plpython_error_0.out Python 2.4 and older
4+
plpython_error_5.out Python 3.5 and newer
45

56
plpython_unicode.out server encoding != SQL_ASCII
67
plpython_unicode_3.out server encoding == SQL_ASCII

0 commit comments

Comments
 (0)
0