From e029f4f73635f90b16efbd5149928356f8226c27 Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Sun, 26 Jul 2020 13:36:30 +0300 Subject: [PATCH] Make unit-test for ellipse stable. --- src/SketchPlugin/Test/TestConstraintCoincidenceEllipse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SketchPlugin/Test/TestConstraintCoincidenceEllipse.py b/src/SketchPlugin/Test/TestConstraintCoincidenceEllipse.py index fcde15be5..070770dd6 100644 --- a/src/SketchPlugin/Test/TestConstraintCoincidenceEllipse.py +++ b/src/SketchPlugin/Test/TestConstraintCoincidenceEllipse.py @@ -95,8 +95,8 @@ class TestCoincidenceEllipse(unittest.TestCase): self.assertGreater(self.myEllipse.minorRadius().value(), 0.0) def assertPoints(self, thePoint1, thePoint2): - self.assertAlmostEqual(thePoint1.x(), thePoint2.x()) - self.assertAlmostEqual(thePoint1.y(), thePoint2.y()) + self.assertAlmostEqual(thePoint1.x(), thePoint2.x(), delta = 1.e-6) + self.assertAlmostEqual(thePoint1.y(), thePoint2.y(), delta = 1.e-6) def checkPointOnAxis(self, thePoint): self.mySketch.setCoincident(thePoint, self.myOX.result()) -- 2.39.2