fixing open mode for updating the file to r+b
authorEduardo Robles Elvira <edulix@wadobo.com>
Wed, 6 Nov 2013 11:49:36 +0000 (12:49 +0100)
committerEduardo Robles Elvira <edulix@wadobo.com>
Wed, 6 Nov 2013 11:49:36 +0000 (12:49 +0100)
testing/test_concat_compress.py

index a594884..2b85784 100644 (file)
@@ -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()