From: Christian Herdtweck Date: Fri, 17 Jun 2016 09:56:24 +0000 (+0200) Subject: had forgotten a few tarobj.close and os.unlink(temp_file) in new tests X-Git-Tag: v2.2~30 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=e88055e609e4807eacd7ceae27748ec9d946548c;p=python-delta-tar had forgotten a few tarobj.close and os.unlink(temp_file) in new tests --- diff --git a/testing/test_multivol.py b/testing/test_multivol.py index 3de65a1..a7a4772 100644 --- a/testing/test_multivol.py +++ b/testing/test_multivol.py @@ -234,6 +234,7 @@ class MultivolGnuFormatTest(BaseTest): format=self.tarfile_format, max_volume_size=30000, new_volume_handler=new_volume_handler) + tarobj.close() def test_compress_single(self): ''' check creation of single volume when compression is on ''' @@ -274,6 +275,8 @@ class MultivolGnuFormatTest(BaseTest): assert os.path.exists("big") assert hash == self.md5sum("big") + os.unlink('big') + def test_multivol_compress(self): ''' check creation of multiple volumes when compression is on ''' @@ -326,6 +329,7 @@ class MultivolGnuFormatTest(BaseTest): os.unlink('sample.tar') os.unlink('sample.1.tar') + os.unlink(filename) def test_volume_extract1(self): ''' @@ -751,8 +755,8 @@ class MultivolGnuFormatTest(BaseTest): versions """ # params - vol_size = 3 # MB - input_size_factor = 3 # --> add 3*3 MB of data + vol_size = 3 # MiB + input_size_factor = 3 # --> add 3*3 MiB of data modes = 'w#gz', 'w#gz.aes128' debug_level = 0 # no debug output clean_up_if_error = True # leave no files behind