Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / src / SMESH_PY / smeshstudytools.py
index 859b5c25cbe8786843e2894445cec2e47a89a78e..8d2edd7292f30d2b721ee479e907b22d5b18c939 100644 (file)
@@ -203,6 +203,8 @@ def TEST_createBoxMesh():
     Hexa_3D = smesh.CreateHypothesis('Hexa_3D')
     status = boxmesh.AddHypothesis(Hexa_3D)
     isDone = boxmesh.Compute()
+    if not isDone:
+      raise Exception("Error when computing Mesh")
 
     smesh.SetName(boxmesh.GetMesh(), 'boxmesh')
     if salome.sg.hasDesktop():