From: Artem Zhidkov Date: Tue, 28 Apr 2020 14:25:11 +0000 (+0300) Subject: Adjust test case. Set correct values (issue #19036) X-Git-Tag: V9_5_0b1~37 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d452d93486e1cfef2762bd9860570f06252de4ce;p=modules%2Fshaper.git Adjust test case. Set correct values (issue #19036) --- diff --git a/src/ParametersPlugin/Test/Test2392.py b/src/ParametersPlugin/Test/Test2392.py index 657fe1757..1ba9478ef 100644 --- a/src/ParametersPlugin/Test/Test2392.py +++ b/src/ParametersPlugin/Test/Test2392.py @@ -49,7 +49,9 @@ model.do() aSession.setActiveDocument(Part_1_doc, False) model.end() +import math +TOLERANCE = 1.e-7 # check the circle radius value -assert(SketchCircle_1.radius().value() == 64.9545) +assert(math.fabs(SketchCircle_1.radius().value() - 64.95456276) < TOLERANCE) assert(model.checkPythonDump())