1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-29 16:21:20 +03:00

PL/Python: Adjust the regression tests for Python 3.4

Back-patch commit d0765d50f429472d00554701ac6531c84d324811 into 9.3
and 9.2, which is as far back as we previously bothered to adjust the
regression tests for Python 3.3.  Per gripe from Honza Horak.
This commit is contained in:
Tom Lane 2014-06-01 15:03:18 -04:00
parent 83ed4598b2
commit 582b41d6e2
3 changed files with 5 additions and 4 deletions

View File

@ -3,3 +3,4 @@
/log/ /log/
/results/ /results/
/tmp_check/ /tmp_check/
/python3/

View File

@ -4,9 +4,9 @@ CONTEXT: PL/Python anonymous code block
DO $$ plpy.notice("This is plpython2u.") $$ LANGUAGE plpython2u; DO $$ plpy.notice("This is plpython2u.") $$ LANGUAGE plpython2u;
NOTICE: This is plpython2u. NOTICE: This is plpython2u.
CONTEXT: PL/Python anonymous code block CONTEXT: PL/Python anonymous code block
DO $$ nonsense $$ LANGUAGE plpythonu; DO $$ raise Exception("error test") $$ LANGUAGE plpythonu;
ERROR: NameError: global name 'nonsense' is not defined ERROR: Exception: error test
CONTEXT: Traceback (most recent call last): CONTEXT: Traceback (most recent call last):
PL/Python anonymous code block, line 1, in <module> PL/Python anonymous code block, line 1, in <module>
nonsense raise Exception("error test")
PL/Python anonymous code block PL/Python anonymous code block

View File

@ -2,4 +2,4 @@ DO $$ plpy.notice("This is plpythonu.") $$ LANGUAGE plpythonu;
DO $$ plpy.notice("This is plpython2u.") $$ LANGUAGE plpython2u; DO $$ plpy.notice("This is plpython2u.") $$ LANGUAGE plpython2u;
DO $$ nonsense $$ LANGUAGE plpythonu; DO $$ raise Exception("error test") $$ LANGUAGE plpythonu;