From: Artem Zhidkov Date: Sun, 26 Jul 2020 10:36:30 +0000 (+0300) Subject: Make unit-test for ellipse stable. X-Git-Tag: V9_6_0a1~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e029f4f73635f90b16efbd5149928356f8226c27;p=modules%2Fshaper.git Make unit-test for ellipse stable. --- 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())