From: Pascal Obry Date: Tue, 19 Dec 2023 14:04:46 +0000 (+0100) Subject: Test1967: Update tolerance ratio for moving vs creating. X-Git-Tag: V9_13_0a1~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ca4fd4963bc25eab9382b9c8b9f5494c1acc8dac;p=modules%2Fshaper.git Test1967: Update tolerance ratio for moving vs creating. It was expected that the time to move a point was 1/10 the time needed to create the sketch. This ratio is just to restrictive and proved to be wrong as many time we get an assertion error on some machine: AssertionError: Time to move point 0.024923065677285194 is greater than expected 0.01865600571036339 We allow for 1/5 of the time now. This is not perfect nor good but the previous ratio was boggus anyway. Maybe at some point we will need to rewrite this test for something more stable in time. --- diff --git a/src/SketchPlugin/Test/Test1967.py b/src/SketchPlugin/Test/Test1967.py index a59dfbbb4..57570aead 100644 --- a/src/SketchPlugin/Test/Test1967.py +++ b/src/SketchPlugin/Test/Test1967.py @@ -27,7 +27,7 @@ from timeit import default_timer as timer import math # convenient ratio of time moving point to time creating sketch -MOVE_BUILD_RATIO = 0.1 +MOVE_BUILD_RATIO = 0.2 # tolerance for comparison of reals TOLERANCE = 1.e-7