diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-11-09 04:44:30 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-11-09 04:44:30 (GMT) |
commit | ae9cbee4da4dc8d224a69dbf4298cab54be94006 (patch) | |
tree | cd939f361c3b9089e507af956a33aaedaa24f5f6 | |
parent | 6ee6db81c2a1834f6cce864e0c84e1a166b15e95 (diff) | |
download | cpython-ae9cbee4da4dc8d224a69dbf4298cab54be94006.zip cpython-ae9cbee4da4dc8d224a69dbf4298cab54be94006.tar.gz cpython-ae9cbee4da4dc8d224a69dbf4298cab54be94006.tar.bz2 |
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.
-rw-r--r-- | Lib/test/test_bz2.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |