From 5eadd6d08ce50080b0c28de6da2acbbfd385fe58 Mon Sep 17 00:00:00 2001 From: galsalomon66 Date: Sun, 18 Sep 2022 10:46:04 +0300 Subject: [PATCH] the use of std::to_string change the double presentation(not accuracy) Signed-off-by: galsalomon66 (cherry picked from commit b20001356520256db522f9b7c4f392dbc085a4dd) --- s3tests_boto3/functional/test_s3select.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s3tests_boto3/functional/test_s3select.py b/s3tests_boto3/functional/test_s3select.py index 7b410d3..bec1b48 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():