From f2fce5b503f13378b7403f974a690f201dd9fc79 Mon Sep 17 00:00:00 2001 From: Gavin Halliday Date: Mon, 15 Jan 2024 10:18:58 +0000 Subject: [PATCH] HPCC-31112 Update python test case to remove new stack trace Signed-off-by: Gavin Halliday --- testing/regress/ecl/embedpy3-catch.ecl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testing/regress/ecl/embedpy3-catch.ecl b/testing/regress/ecl/embedpy3-catch.ecl index 9074de26ad5..eb8847554bd 100644 --- a/testing/regress/ecl/embedpy3-catch.ecl +++ b/testing/regress/ecl/embedpy3-catch.ecl @@ -23,6 +23,7 @@ //skip type==thorlcr TBD IMPORT Python3; +IMPORT Std.Str; integer testThrow(integer val) := EMBED(Python3) raise Exception('Error from Python') @@ -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;