From 32e30768d8ae089cd9c9597454ec4d6ebcd4fd6d Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Wed, 15 Jun 2016 15:07:24 +0200 Subject: [PATCH] fix search for file with impossible size (had forgotten that volume_size is in MB) --- testing/test_multivol_compression_sizes.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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, -- 1.7.1