tests : write to binary buffer to avoid newline translation in jinja -py [no ci] (#20365)
This commit is contained in:
parent
cf21cdf36c
commit
55e87026f7
1 changed files with 1 additions and 1 deletions
|
|
@ -1915,7 +1915,7 @@ env.globals["raise_exception"] = raise_exception
|
||||||
|
|
||||||
template = env.from_string(tmpl)
|
template = env.from_string(tmpl)
|
||||||
result = template.render(**vars_json)
|
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) {
|
static void test_template_py(testing & t, const std::string & name, const std::string & tmpl, const json & vars, const std::string & expect) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue