[Python-checkins] r53778 - python/trunk/Lib/test/test_tarfile.py

lars.gustaebel python-checkins at python.org
Wed Feb 14 15:45:13 CET 2007


Author: lars.gustaebel
Date: Wed Feb 14 15:45:12 2007
New Revision: 53778

Modified:
   python/trunk/Lib/test/test_tarfile.py
Log:
A missing binary mode in AppendTest caused failures in Windows
Buildbot.



Modified: python/trunk/Lib/test/test_tarfile.py
==============================================================================
--- python/trunk/Lib/test/test_tarfile.py	(original)
+++ python/trunk/Lib/test/test_tarfile.py	Wed Feb 14 15:45:12 2007
@@ -336,7 +336,7 @@
         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 @@
 
     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)


More information about the Python-checkins mailing list