summaryrefslogtreecommitdiff
path: root/src/pl/plpython/expected/plpython_import.out
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-05-11 23:01:15 +0300
committerPeter Eisentraut <peter_e@gmx.net>2012-05-11 23:04:47 +0300
commit2cfb1c6f77734db81b6e74bcae630f93b94f69be (patch)
tree57db3ab48931ffe5a906998f2418a1d9f5b3ab48 /src/pl/plpython/expected/plpython_import.out
parent63fecc91770f3d494b6fe993bdc198a9faf6fe2d (diff)
PL/Python: Adjust the regression tests for Python 3.3
The string representation of ImportError changed. Remove printing that; it's not necessary for the test. The order in which members of a dict are printed changed. But this was always implementation-dependent, so we have just been lucky for a long time. Do the printing the hard way to ensure sorted order.
Diffstat (limited to 'src/pl/plpython/expected/plpython_import.out')
-rw-r--r--src/pl/plpython/expected/plpython_import.out5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pl/plpython/expected/plpython_import.out b/src/pl/plpython/expected/plpython_import.out
index b91ecc69619..1d981eacf12 100644
--- a/src/pl/plpython/expected/plpython_import.out
+++ b/src/pl/plpython/expected/plpython_import.out
@@ -3,8 +3,7 @@ CREATE FUNCTION import_fail() returns text
AS
'try:
import foosocket
-except Exception, ex:
- plpy.notice("import socket failed -- %s" % str(ex))
+except ImportError:
return "failed as expected"
return "succeeded, that wasn''t supposed to happen"'
LANGUAGE plpythonu;
@@ -51,8 +50,6 @@ return "sha hash of " + plain + " is " + digest.hexdigest()'
-- import python modules
--
SELECT import_fail();
-NOTICE: import socket failed -- No module named foosocket
-CONTEXT: PL/Python function "import_fail"
import_fail
--------------------
failed as expected