From: Sigbjørn Skjæret Date: Mon, 16 Mar 2026 19:40:22 +0000 (+0100) Subject: tests : write to binary buffer to avoid newline translation in jinja -py [no ci]... X-Git-Tag: upstream/0.0.8611~226 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=55e87026f7b782a577544516687326d402b0503b;p=pkg%2Fggml%2Fsources%2Fllama.cpp tests : write to binary buffer to avoid newline translation in jinja -py [no ci] (#20365) --- diff --git a/tests/test-jinja.cpp b/tests/test-jinja.cpp index 05ea8ca9e..23af1ec82 100644 --- a/tests/test-jinja.cpp +++ b/tests/test-jinja.cpp @@ -1915,7 +1915,7 @@ env.globals["raise_exception"] = raise_exception template = env.from_string(tmpl) result = template.render(**vars_json) -print(result, end='') +sys.stdout.buffer.write(result.encode()) )"; static void test_template_py(testing & t, const std::string & name, const std::string & tmpl, const json & vars, const std::string & expect) {