From ca4fd4963bc25eab9382b9c8b9f5494c1acc8dac Mon Sep 17 00:00:00 2001 From: Pascal Obry Date: Tue, 19 Dec 2023 15:04:46 +0100 Subject: [PATCH] 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. --- src/SketchPlugin/Test/Test1967.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2