Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

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

6 files changed

+445
-16
lines changed

src/pl/plpython/expected/README

+1
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)