From: galsalomon66 Date: Sun, 18 Sep 2022 07:46:04 +0000 (+0300) Subject: the use of std::to_string change the double presentation(not accuracy) X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5eadd6d08ce50080b0c28de6da2acbbfd385fe58;p=s3-tests.git the use of std::to_string change the double presentation(not accuracy) Signed-off-by: galsalomon66 (cherry picked from commit b20001356520256db522f9b7c4f392dbc085a4dd) --- diff --git a/s3tests_boto3/functional/test_s3select.py b/s3tests_boto3/functional/test_s3select.py index 7b410d3a..bec1b481 100644 --- a/s3tests_boto3/functional/test_s3select.py +++ b/s3tests_boto3/functional/test_s3select.py @@ -72,10 +72,10 @@ def generate_s3select_expression_projection(bucket_name,obj_name): res = remove_xml_tags_from_result( run_s3select(bucket_name,obj_name,"select " + e + " from s3object;",) ).replace(",","") # accuracy level - epsilon = float(0.000001) + epsilon = float(0.00001) # both results should be close (epsilon) - assert (1 - (float(res.split("\n")[1]) / eval( e )) ) < epsilon + assert( abs(float(res.split("\n")[1]) - eval(e)) < epsilon ) @attr('s3select') def get_random_string():