[Python-checkins] r46007 - python/trunk/Lib/test/test_tarfile.py
tim.peters
python-checkins at python.org
Mon May 15 22:44:11 CEST 2006
Author: tim.peters
Date: Mon May 15 22:44:10 2006
New Revision: 46007
Modified:
python/trunk/Lib/test/test_tarfile.py
Log:
ReadDetectFileobjTest: repair Windows disasters by opening
the file object in binary mode.
The Windows buildbot slaves shouldn't swap themselves to death
anymore. However, test_tarfile may still fail because of a
temp directory left behind from a previous failing run.
Windows buildbot owners may need to remove that directory
by hand.
Modified: python/trunk/Lib/test/test_tarfile.py
==============================================================================
--- python/trunk/Lib/test/test_tarfile.py (original)
+++ python/trunk/Lib/test/test_tarfile.py Mon May 15 22:44:10 2006
@@ -221,7 +221,8 @@
def setUp(self):
name = tarname(self.comp)
- self.tar = tarfile.open(name, mode=self.mode, fileobj=file(name))
+ self.tar = tarfile.open(name, mode=self.mode,
+ fileobj=open(name, "rb"))
class ReadAsteriskTest(ReadTest):
More information about the Python-checkins
mailing list