summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tarfile.py
diff options
context:
space:
mode:
authorLars Gustäbel <lars@gustaebel.de>2007-02-14 14:45:12 (GMT)
committerLars Gustäbel <lars@gustaebel.de>2007-02-14 14:45:12 (GMT)
commitd0b6040cedccb198deeae6b7703cba61f85c361e (patch)
treeec2f392c230d68aea814fa4cf62e3ba420377b32 /Lib/test/test_tarfile.py
parentf1a4aa340ea3794a6cc2d54fb6647b4d7b61f275 (diff)
downloadcpython-d0b6040cedccb198deeae6b7703cba61f85c361e.zip
cpython-d0b6040cedccb198deeae6b7703cba61f85c361e.tar.gz
cpython-d0b6040cedccb198deeae6b7703cba61f85c361e.tar.bz2
A missing binary mode in AppendTest caused failures in Windows
Buildbot.
Diffstat (limited to 'Lib/test/test_tarfile.py')
-rw-r--r--Lib/test/test_tarfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
index 642f376..f2dd97d 100644
--- a/Lib/test/test_tarfile.py
+++ b/Lib/test/test_tarfile.py
@@ -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)