summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bz2.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-11-09 04:44:30 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-11-09 04:44:30 (GMT)
commitae9cbee4da4dc8d224a69dbf4298cab54be94006 (patch)
treecd939f361c3b9089e507af956a33aaedaa24f5f6 /Lib/test/test_bz2.py
parent6ee6db81c2a1834f6cce864e0c84e1a166b15e95 (diff)
downloadcpython-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.
Diffstat (limited to 'Lib/test/test_bz2.py')
-rw-r--r--Lib/test/test_bz2.py2
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: