From: Eduardo Robles Elvira Date: Wed, 6 Nov 2013 11:49:36 +0000 (+0100) Subject: fixing open mode for updating the file to r+b X-Git-Tag: v2.2~78 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=4e82a6694e6f50df4309dc3112c3edecdace6ad2;p=python-delta-tar fixing open mode for updating the file to r+b --- diff --git a/testing/test_concat_compress.py b/testing/test_concat_compress.py index a594884..2b85784 100644 --- a/testing/test_concat_compress.py +++ b/testing/test_concat_compress.py @@ -429,7 +429,7 @@ class ConcatCompressTest(BaseTest): assert os.path.exists("sample.tar.gz") # overwrite stuff in the middle of the big file - f = open('sample.tar.gz', 'wb') + f = open('sample.tar.gz', 'r+b') f.seek(100) f.write(bytes("breaking things", 'UTF-8')) f.close()