From ecad6b188997d2cc9c898805688216a1137c7024 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Wed, 4 Dec 2019 14:31:02 +0800 Subject: [PATCH] fix compatibility for Python 2.7, makedirs exsit_ok --- httprunner/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httprunner/utils.py b/httprunner/utils.py index 5f24b396..928b4882 100644 --- a/httprunner/utils.py +++ b/httprunner/utils.py @@ -673,7 +673,7 @@ def prepare_dump_json_file_abs_path(project_mapping, tag_name): dump_file_name = "{}.{}.json".format(test_file_name, tag_name) if not os.path.isdir(file_foder_path): - os.makedirs(file_foder_path, exist_ok=True) + os.makedirs(file_foder_path) dumped_json_file_abs_path = os.path.join(file_foder_path, dump_file_name) return dumped_json_file_abs_path