Skip to content

Commit

Permalink
fix integration test output for unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
eyal0 committed Oct 8, 2020
1 parent 4b4e092 commit 3e52ce9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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" +
Expand Down

0 comments on commit 3e52ce9

Please sign in to comment.