]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchPlugin/Test/TestConstraintCoincidenceBSpline.py
Salome HOME
Update unit tests for B-spline feature
[modules/shaper.git] / src / SketchPlugin / Test / TestConstraintCoincidenceBSpline.py
index 80ab412e2184e68129521397483d36452db70135..36a0426fe7bf43f3b4e5cd530784f31fd874925c 100644 (file)
@@ -99,7 +99,7 @@ class TestCoincidenceBSpline(unittest.TestCase):
 
   def assertPointOnSpline(self, thePoint, theSpline):
     point = GeomAPI_Pnt(thePoint.x(), thePoint.y(), 0.0)
-    bspline = GeomAPI_BSpline(GeomAPI_Curve(theSpline.results()[-1].resultSubShapePair()[0].shape()))
+    bspline = GeomAPI_Curve(theSpline.results()[-1].resultSubShapePair()[0].shape())
     proj = bspline.project(point)
     self.assertAlmostEqual(point.distance(proj), 0.0)