had forgotten a few tarobj.close and os.unlink(temp_file) in new tests
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 17 Jun 2016 09:56:24 +0000 (11:56 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 17 Jun 2016 09:56:24 +0000 (11:56 +0200)
testing/test_multivol.py

index 3de65a1..a7a4772 100644 (file)
@@ -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