Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit582b41d

Browse files
committed
PL/Python: Adjust the regression tests for Python 3.4
Back-patch commitd0765d5 into 9.3and 9.2, which is as far back as we previously bothered to adjust theregression tests for Python 3.3. Per gripe from Honza Horak.
1 parent83ed459 commit582b41d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

‎src/pl/plpython/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/log/
44
/results/
55
/tmp_check/
6+
/python3/

‎src/pl/plpython/expected/plpython_do.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ CONTEXT: PL/Python anonymous code block
44
DO $$ plpy.notice("This is plpython2u.") $$ LANGUAGE plpython2u;
55
NOTICE: This is plpython2u.
66
CONTEXT: PL/Python anonymous code block
7-
DO $$nonsense $$ LANGUAGE plpythonu;
8-
ERROR:NameError: global name 'nonsense' is not defined
7+
DO $$raise Exception("error test") $$ LANGUAGE plpythonu;
8+
ERROR:Exception: error test
99
CONTEXT: Traceback (most recent call last):
1010
PL/Python anonymous code block, line 1, in <module>
11-
nonsense
11+
raise Exception("error test")
1212
PL/Python anonymous code block

‎src/pl/plpython/sql/plpython_do.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ DO $$ plpy.notice("This is plpythonu.") $$ LANGUAGE plpythonu;
22

33
DO $$plpy.notice("This is plpython2u.") $$ LANGUAGE plpython2u;
44

5-
DO $$nonsense $$ LANGUAGE plpythonu;
5+
DO $$raise Exception("error test") $$ LANGUAGE plpythonu;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp