Commit 983000d4 authored by Tim Peters's avatar Tim Peters

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.
parent b9b707db
...@@ -34,7 +34,7 @@ class BZ2FileTest(BaseTest): ...@@ -34,7 +34,7 @@ class BZ2FileTest(BaseTest):
os.unlink(self.filename) os.unlink(self.filename)
def createTempFile(self, crlf=0): def createTempFile(self, crlf=0):
f = open(self.filename, "w") f = open(self.filename, "wb")
if crlf: if crlf:
data = self.DATA_CRLF data = self.DATA_CRLF
else: else:
......
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