diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-05-15 20:44:10 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-05-15 20:44:10 (GMT) |
commit | 12087bae18ac349338fab42a42e28e941de23477 (patch) | |
tree | 4e978890490d27ad5803708277d781dd1d4c3321 /Lib | |
parent | 49c8f4cf36926d40951fd3a151ddf45caf06cfdb (diff) | |
download | cpython-12087bae18ac349338fab42a42e28e941de23477.zip cpython-12087bae18ac349338fab42a42e28e941de23477.tar.gz cpython-12087bae18ac349338fab42a42e28e941de23477.tar.bz2 |
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.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_tarfile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index cd58c9a..0f3df7f 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -221,7 +221,8 @@ class ReadDetectFileobjTest(ReadTest): 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): |