extend valid range of sizes for sample.tar.gz file
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 10 Jun 2016 08:09:24 +0000 (10:09 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 15 Jun 2016 11:18:03 +0000 (13:18 +0200)
testing/test_multivol.py

index 58d90fb..135da13 100644 (file)
@@ -255,7 +255,8 @@ class MultivolGnuFormatTest(BaseTest):
         assert not os.path.exists("sample.tar.gz.1")
 
         # check size of first volume
-        assert 330 < os.stat("sample.tar.gz").st_size < 350
+        size = os.stat("sample.tar.gz").st_size
+        assert 330 < size < 410, 'size of sample.tar.gz is {}'.format(size)
 
         os.unlink("big")
         assert not os.path.exists("big")