Commit 1bcacfea authored by Marius Gedminas's avatar Marius Gedminas

Fix tests on Python 3

parent bc3008c6
...@@ -812,7 +812,7 @@ class Test_do_verify(OptionsTestBase, unittest.TestCase): ...@@ -812,7 +812,7 @@ class Test_do_verify(OptionsTestBase, unittest.TestCase):
else: else:
_opener = open _opener = open
with _opener(fqn, 'wb') as f: with _opener(fqn, 'wb') as f:
f.write(text) f.write(text.encode())
f.flush() f.flush()
return fqn return fqn
......
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