From: Christian Herdtweck Date: Wed, 15 Jun 2016 13:07:24 +0000 (+0200) Subject: fix search for file with impossible size (had forgotten that volume_size is in MB) X-Git-Tag: v2.2~33 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=32e30768d8ae089cd9c9597454ec4d6ebcd4fd6d;p=python-delta-tar fix search for file with impossible size (had forgotten that volume_size is in MB) --- diff --git a/testing/test_multivol_compression_sizes.py b/testing/test_multivol_compression_sizes.py index 58f09fc..5b50331 100644 --- a/testing/test_multivol_compression_sizes.py +++ b/testing/test_multivol_compression_sizes.py @@ -199,7 +199,7 @@ def test(volume_size, input_size_factor, mode, temp_dir, prefix='', if file_name.startswith(base_name): continue # do not accidentally add self new_size = os.lstat(file_name).st_size - if new_size > max(volume_size, input_size-added_size): + if new_size > max(volume_size*1.e6, input_size-added_size): continue # add at most one volume_size too much new_name = '{}_{:04d}_{}_{:09d}' \ .format(base_name, count,