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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy