aboutsummaryrefslogtreecommitdiffstats
path: root/travis/nasm-t.py
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-11-03 14:50:09 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 21:43:45 +0300
commit750bc50aa8306b0687d3d8bba6ef84d6d2224325 (patch)
treebce76c1d93fc6e79b0265977e70c6c22794ed7f7 /travis/nasm-t.py
parentb4e3f119314912b98b11646b1cea5c7b9ba03f80 (diff)
downloadnasm-750bc50aa8306b0687d3d8bba6ef84d6d2224325.tar.gz
nasm-750bc50aa8306b0687d3d8bba6ef84d6d2224325.tar.xz
nasm-750bc50aa8306b0687d3d8bba6ef84d6d2224325.zip
test: nasm-t -- Write text data in utf8 form
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis/nasm-t.py')
-rwxr-xr-xtravis/nasm-t.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/travis/nasm-t.py b/travis/nasm-t.py
index b7d85346..97278f88 100755
--- a/travis/nasm-t.py
+++ b/travis/nasm-t.py
@@ -363,13 +363,13 @@ def test_update(desc):
match = desc['_base-dir'] + os.sep + t['stdout']
print("\tMoving %s to %s" % ('stdout', match))
with open(match, "wb") as f:
- f.write(stdout)
+ f.write(stdout.encode("utf-8"))
f.close()
if 'stderr' in t:
match = desc['_base-dir'] + os.sep + t['stderr']
print("\tMoving %s to %s" % ('stderr', match))
with open(match, "wb") as f:
- f.write(stderr)
+ f.write(stderr.encode("utf-8"))
f.close()
return test_updated(desc['_test-name'])