Commit bebf75f3 authored by Benjamin Peterson's avatar Benjamin Peterson

open file in binary mode

parent 35893b79
......@@ -23,10 +23,10 @@ class BytesIOMixin:
class FileIOMixin:
def output(self):
return open(test_support.TESTFN, 'w+')
return open(test_support.TESTFN, 'wb+')
def input(self, data):
f = open(test_support.TESTFN, 'w+')
f = open(test_support.TESTFN, 'wb+')
try:
f.write(data)
f.seek(0)
......
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