From ae9cbee4da4dc8d224a69dbf4298cab54be94006 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sat, 9 Nov 2002 04:44:30 +0000 Subject: 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. --- Lib/test/test_bz2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index 5c93887..79ccf24 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: -- cgit v0.12