mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
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.
This commit is contained in:
parent
6ee6db81c2
commit
ae9cbee4da
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue