From 7955fb2e5f04041e3db75a9def02f41853131e6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigbj=C3=B8rn=20Skj=C3=A6ret?= Date: Tue, 10 Mar 2026 22:37:47 +0100 Subject: [PATCH] write to binary buffer to avoid newline translation --- 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) {