]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Stabilization of the test TestMoveArc
authormpv <mpv@opencascade.com>
Wed, 3 Apr 2019 08:48:17 +0000 (11:48 +0300)
committermpv <mpv@opencascade.com>
Wed, 3 Apr 2019 08:48:17 +0000 (11:48 +0300)
src/SketchPlugin/Test/TestMoveArc.py

index 621538e032c14eb5c0e445c6366f749156f0222d..b66678599f6c82dad13397e88e8f1f061177123b 100644 (file)
@@ -251,8 +251,7 @@ class TestMoveArc(unittest.TestCase):
     self.mySketch.move(self.myArc.defaultResult(), newPosition[0], newPosition[1])
     model.do()
     self.checkPointCoordinates(self.myArc.endPoint(), self.myEnd)
-    self.assertNotEqual(self.myArc.center().x(), self.myCenter[0])
-    self.assertNotEqual(self.myArc.center().y(), self.myCenter[1])
+    self.assertTrue(fabs(self.myArc.center().x() - self.myCenter[0]) > 1.e-5 or fabs(self.myArc.center().y() - self.myCenter[1]) > 1.e-5)
 
   def test_move_center_of_arc_fixed_radius(self):
     """ Test 17. Movement of center of the arc with fixed radius