Commit afc5863d authored by Michal Čihař's avatar Michal Čihař

Force output in utf-8

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 3d5a3415
...@@ -306,7 +306,7 @@ class OutputTest(TestCase): ...@@ -306,7 +306,7 @@ class OutputTest(TestCase):
} }
''' '''
out = tempfile.NamedTemporaryFile() out = tempfile.NamedTemporaryFile()
out.write(json_input) out.write(json_input.encode('utf-8'))
out.flush() out.flush()
JSONFormat(out.name).save() JSONFormat(out.name).save()
with open(out.name) as handle: with open(out.name) as handle:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment