From dbc26ae79834f9919449c8f37d7a380cf60cac8f Mon Sep 17 00:00:00 2001 From: huangdabiao Date: Thu, 10 Jun 2021 10:32:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3response=E7=9A=84dict?= =?UTF-8?q?=E4=B8=AD=E5=A6=82=E6=9E=9C=E5=8C=85=E5=90=AB=E6=9C=89=E6=B1=89?= =?UTF-8?q?=E5=AD=97=EF=BC=8C=E6=98=BE=E7=A4=BA=E8=BD=AC=E4=B9=89=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- httprunner/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httprunner/client.py b/httprunner/client.py index deead393..1832ed95 100644 --- a/httprunner/client.py +++ b/httprunner/client.py @@ -34,7 +34,7 @@ def get_req_resp_record(resp_obj: Response) -> ReqRespData: msg = f"\n================== {r_type} details ==================\n" for key, value in req_or_resp.dict().items(): if isinstance(value, dict): - value = json.dumps(value, indent=4) + value = json.dumps(value, indent=4, ensure_ascii=False) msg += "{:<8} : {}\n".format(key, value) logger.debug(msg)