Open at least one binary file in binary mode. This allows a few of the

bz2 tests to pass on Windows; most are still failing.
This commit is contained in:
Tim Peters 2002-11-09 04:44:30 +00:00
parent 6ee6db81c2
commit ae9cbee4da

View file

@ -34,7 +34,7 @@ class BZ2FileTest(BaseTest):
os.unlink(self.filename)
def createTempFile(self, crlf=0):
f = open(self.filename, "w")
f = open(self.filename, "wb")
if crlf:
data = self.DATA_CRLF
else: