mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
A missing binary mode in AppendTest caused failures in Windows
Buildbot.
This commit is contained in:
parent
f1a4aa340e
commit
d0b6040ced
1 changed files with 2 additions and 2 deletions
|
@ -336,7 +336,7 @@ class AppendTest(unittest.TestCase):
|
|||
self._test()
|
||||
|
||||
def test_empty(self):
|
||||
open(self.tarname, "w").close()
|
||||
open(self.tarname, "wb").close()
|
||||
self._add_testfile()
|
||||
self._test()
|
||||
|
||||
|
@ -348,7 +348,7 @@ class AppendTest(unittest.TestCase):
|
|||
|
||||
def test_fileobj(self):
|
||||
self._create_testtar()
|
||||
data = open(self.tarname).read()
|
||||
data = open(self.tarname, "rb").read()
|
||||
fobj = StringIO.StringIO(data)
|
||||
self._add_testfile(fobj)
|
||||
fobj.seek(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue