Merge branch 'bugfix/pyyaml_test_config_output_unicode' into 'master'

test_config: pyyaml will generate !!python/unicode in test_config

See merge request espressif/esp-idf!8288
This commit is contained in:
Ivan Grokhotkov 2020-04-20 02:21:11 +08:00
commit 8ee1ec1270

View File

@ -62,4 +62,4 @@ class Job(dict):
file_name = os.path.join(file_path, self["name"] + ".yml")
if "case group" in self:
with open(file_name, "w") as f:
yaml.dump(self["case group"].output(), f, default_flow_style=False)
yaml.safe_dump(self["case group"].output(), f, encoding='utf-8', default_flow_style=False)