mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 07:21:23 +08:00
bugfix: dump file with Chinese charactor in Python 3
This commit is contained in:
@@ -661,7 +661,13 @@ def dump_json_file(json_data, pwd_dir_path, dump_file_name):
|
|||||||
))
|
))
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
json.dump(json_data, outfile, indent=4, separators=(',', ':'))
|
json.dump(
|
||||||
|
json_data,
|
||||||
|
outfile,
|
||||||
|
indent=4,
|
||||||
|
separators=(',', ':'),
|
||||||
|
ensure_ascii=False
|
||||||
|
)
|
||||||
|
|
||||||
msg = "dump file: {}".format(dump_file_path)
|
msg = "dump file: {}".format(dump_file_path)
|
||||||
logger.color_print(msg, "BLUE")
|
logger.color_print(msg, "BLUE")
|
||||||
|
|||||||
Reference in New Issue
Block a user