Skip to content

Commit

Permalink
tests: expect UTF-8 output
Browse files Browse the repository at this point in the history
  • Loading branch information
tari committed Sep 29, 2023
1 parent b491625 commit 6c7e116
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test-runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ def run_assembler(assembler: str, infile: str, opts: str) -> Tuple[int, ByteStri
proc = subprocess.Popen(
[assembler] + shlex.split(opts) + [infile, outfile_name],
stdin=DEVNULL, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, universal_newlines=True)
stderr=subprocess.STDOUT, universal_newlines=True,
encoding='UTF-8')
pout, perr = proc.communicate()

outfile = os.fdopen(outfile_fd, "rb")
Expand Down

0 comments on commit 6c7e116

Please sign in to comment.