]> granicus.if.org Git - python/commitdiff
Open at least one binary file in binary mode. This allows a few of the
authorTim Peters <tim.peters@gmail.com>
Sat, 9 Nov 2002 04:44:30 +0000 (04:44 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 9 Nov 2002 04:44:30 +0000 (04:44 +0000)
bz2 tests to pass on Windows; most are still failing.

Lib/test/test_bz2.py

index 5c9388746f41a74c43f35d98181108aadbabcb02..79ccf24d369b8578c5b4e3602daa5b25286bb0bd 100644 (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: