From 48e91600afeccc5c04806e07294ba16449ecc7bc Mon Sep 17 00:00:00 2001 From: tmshn Date: Wed, 11 Oct 2017 18:10:15 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20bin/jp-compliance:=20specify=20encode=20f?= =?UTF-8?q?or=20compatibility=20in=20Python3=20This=20avoids=20following?= =?UTF-8?q?=20error=20in=20Python3:=20=E2=80=9CTypeError:=20a=20bytes-like?= =?UTF-8?q?=20object=20is=20required,=20not=20'str=E2=80=99=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/jp-compliance | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/jp-compliance b/bin/jp-compliance index 3b66ad45..115e8972 100755 --- a/bin/jp-compliance +++ b/bin/jp-compliance @@ -127,7 +127,8 @@ class ComplianceTestRunner(object): command.append(test_case['expression']) process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, - stdin=subprocess.PIPE) + stdin=subprocess.PIPE, + encoding='utf-8') process.stdin.write(json.dumps(test_case['given'])) process.stdin.flush() stdout, stderr = process.communicate()