From e6c2e8cb87846161033e1f215876c4b95f631df0 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 2 May 2012 21:09:03 +0300 Subject: PL/Python: Improve test coverage Add test cases for inline handler of plython2u (when using that language name), and for result object element assignment. There is now at least one test case for every top-level functionality, except plpy.Fatal (annoying to use in regression tests) and result object slice retrieval and slice assignment (which are somewhat broken). --- src/pl/plpython/expected/plpython_do.out | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pl/plpython/expected/plpython_do.out') diff --git a/src/pl/plpython/expected/plpython_do.out b/src/pl/plpython/expected/plpython_do.out index 41b7a51138..d979cf811c 100644 --- a/src/pl/plpython/expected/plpython_do.out +++ b/src/pl/plpython/expected/plpython_do.out @@ -1,6 +1,9 @@ DO $$ plpy.notice("This is plpythonu.") $$ LANGUAGE plpythonu; NOTICE: This is plpythonu. CONTEXT: PL/Python anonymous code block +DO $$ plpy.notice("This is plpython2u.") $$ LANGUAGE plpython2u; +NOTICE: This is plpython2u. +CONTEXT: PL/Python anonymous code block DO $$ nonsense $$ LANGUAGE plpythonu; ERROR: NameError: global name 'nonsense' is not defined CONTEXT: Traceback (most recent call last): -- cgit v1.2.1