From d452d93486e1cfef2762bd9860570f06252de4ce Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Tue, 28 Apr 2020 17:25:11 +0300 Subject: [PATCH] Adjust test case. Set correct values (issue #19036) --- src/ParametersPlugin/Test/Test2392.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()) -- 2.39.2