From: Tim Peters Date: Sat, 9 Nov 2002 04:44:30 +0000 (+0000) Subject: Open at least one binary file in binary mode. This allows a few of the X-Git-Tag: v2.3c1~3503 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae9cbee4da4dc8d224a69dbf4298cab54be94006;p=python 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. --- diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index 5c9388746f..79ccf24d36 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -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: