From 55e87026f7b782a577544516687326d402b0503b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigbj=C3=B8rn=20Skj=C3=A6ret?= Date: Mon, 16 Mar 2026 20:40:22 +0100 Subject: [PATCH] tests : write to binary buffer to avoid newline translation in jinja -py [no ci] (#20365) --- tests/test-jinja.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-jinja.cpp b/tests/test-jinja.cpp index 05ea8ca9e9..23af1ec827 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) {