A missing binary mode in AppendTest caused failures in Windows

Buildbot.
This commit is contained in:
Lars Gustäbel 2007-02-14 14:45:12 +00:00
parent f1a4aa340e
commit d0b6040ced
1 changed files with 2 additions and 2 deletions

View File

@ -336,7 +336,7 @@ class AppendTest(unittest.TestCase):
self._test() self._test()
def test_empty(self): def test_empty(self):
open(self.tarname, "w").close() open(self.tarname, "wb").close()
self._add_testfile() self._add_testfile()
self._test() self._test()
@ -348,7 +348,7 @@ class AppendTest(unittest.TestCase):
def test_fileobj(self): def test_fileobj(self):
self._create_testtar() self._create_testtar()
data = open(self.tarname).read() data = open(self.tarname, "rb").read()
fobj = StringIO.StringIO(data) fobj = StringIO.StringIO(data)
self._add_testfile(fobj) self._add_testfile(fobj)
fobj.seek(0) fobj.seek(0)