Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae9cbee

Browse files
committed
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.
1 parent 6ee6db8 commit ae9cbee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_bz2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def tearDown(self):
3434
os.unlink(self.filename)
3535

3636
def createTempFile(self, crlf=0):
37-
f = open(self.filename, "w")
37+
f = open(self.filename, "wb")
3838
if crlf:
3939
data = self.DATA_CRLF
4040
else:

0 commit comments

Comments
 (0)