]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make unit-test for ellipse stable.
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Sun, 26 Jul 2020 10:36:30 +0000 (13:36 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Sun, 26 Jul 2020 10:36:30 +0000 (13:36 +0300)
src/SketchPlugin/Test/TestConstraintCoincidenceEllipse.py

index fcde15be53b35d15fe7cd2d8bbca5a8e34483c24..070770dd6de7e7df7211bb550bebfdd3b6592ae0 100644 (file)
@@ -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())