From 0d4fc183a26d9abd8c7415e82def34fad8bd69f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E4=BF=8A=E5=A5=87?= Date: Fri, 26 May 2017 09:51:30 +0800 Subject: [PATCH] =?UTF-8?q?[UPDATE]=20=E4=BF=AE=E5=A4=8D=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=B5=8B=E8=AF=95BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_poetry.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_poetry.py b/test_poetry.py index aecdabf..7647499 100644 --- a/test_poetry.py +++ b/test_poetry.py @@ -7,14 +7,14 @@ import os, json -def check_json(json): - filepath = os.path.join('./json', json) +def check_json(f): + filepath = os.path.join('./json', f) with open(filepath) as file: try: _ = json.loads(file.read()) return True except: - assert False, "校验(%s)失败" % json + assert False, "校验(%s)失败" % f def test_json():