From 3e52ce9deb05b250f296f8b4e172aaa6cda2dad0 Mon Sep 17 00:00:00 2001 From: eyal0 <109809+eyal0@users.noreply.github.com> Date: Thu, 8 Oct 2020 17:57:16 -0600 Subject: [PATCH] fix integration test output for unicode --- integration_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration_tests.py b/integration_tests.py index 21967cd9d..3a4b93d22 100755 --- a/integration_tests.py +++ b/integration_tests.py @@ -377,10 +377,10 @@ def test_method(self): files_patched = [] for l in result[0].split(b'\n'): if l.startswith(b"patching file '"): - files_patched.append(str(l[len("patching file '"):-1])) + files_patched.append(l[len("patching file '"):-1].decode()) elif l.startswith(b"patching file "): - files_patched.append(str(l[len("patching file "):])) - print(result[0]) + files_patched.append(l[len("patching file "):].decode()) + print(result[0].decode()) if args.add: subprocess.call(["git", "add"] + files_patched) print("Done.\nAdded to git:\n" +