Skip to content

Commit

Permalink
Merge pull request #18224 from ghalliday/issue31112
Browse files Browse the repository at this point in the history
HPCC-31112 Update python test case to remove new stack trace

Reviewed-by: Gordon Smith <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Jan 16, 2024
2 parents c21d34e + f2fce5b commit bb0877a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testing/regress/ecl/embedpy3-catch.ecl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
//skip type==thorlcr TBD

IMPORT Python3;
IMPORT Std.Str;

integer testThrow(integer val) := EMBED(Python3)
raise Exception('Error from Python')
Expand All @@ -32,8 +33,9 @@ ENDEMBED;
d := dataset([{ 1, '' }], { integer a, string m} ) : stored('nofold');

d t := transform
eol := Str.Find(FAILMESSAGE, '\n');
self.a := FAILCODE;
self.m := FAILMESSAGE;
self.m := IF(eol != 0, FAILMESSAGE[1..eol-1], FAILMESSAGE);
self := [];
end;

Expand Down

0 comments on commit bb0877a

Please sign in to comment.