X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParametersPlugin%2FTest%2FTest2392.py;h=9f2b8bbc13de1bc9f546bcd07fc96f4998a9e12e;hb=refs%2Fheads%2FV9_11_BR;hp=b328c7f48654c42758639a8c7ed097db76abe817;hpb=6e421e939851e0de46554ae45a3ca0e1f67cd91d;p=modules%2Fshaper.git diff --git a/src/ParametersPlugin/Test/Test2392.py b/src/ParametersPlugin/Test/Test2392.py index b328c7f48..9f2b8bbc1 100644 --- a/src/ParametersPlugin/Test/Test2392.py +++ b/src/ParametersPlugin/Test/Test2392.py @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# Copyright (C) 2014-2023 CEA, EDF # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -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())