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
pull/5182/head
Ivan Grokhotkov 2020-04-20 02:21:11 +08:00
commit 8ee1ec1270
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)