From 4e82a6694e6f50df4309dc3112c3edecdace6ad2 Mon Sep 17 00:00:00 2001 From: Eduardo Robles Elvira Date: Wed, 6 Nov 2013 12:49:36 +0100 Subject: [PATCH] fixing open mode for updating the file to r+b --- testing/test_concat_compress.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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() -- 1.7.1