From: mpv Date: Wed, 3 Apr 2019 08:48:17 +0000 (+0300) Subject: Stabilization of the test TestMoveArc X-Git-Tag: V9_3_0rc1~3^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=08d8e0a74cc81ca6abd11cf640b49fa57e5832c9;p=modules%2Fshaper.git Stabilization of the test TestMoveArc --- diff --git a/src/SketchPlugin/Test/TestMoveArc.py b/src/SketchPlugin/Test/TestMoveArc.py index 621538e03..b66678599 100644 --- a/src/SketchPlugin/Test/TestMoveArc.py +++ b/src/SketchPlugin/Test/TestMoveArc.py @@ -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