Salome HOME
Check result of Compute() in test
[modules/smesh.git] / test / SMESH_ParallelCompute.py
index fccec13004cd413103483135123ac6fd80086c21..eec5a7aad18db1a982fcbf61163d2ad4f00e9078 100644 (file)
@@ -102,13 +102,17 @@ def run_test(nbox=2, boxsize=100):
 
     start = time.monotonic()
     is_done = seq_mesh.Compute()
-    assert is_done
+    if not is_done:
+        raise Exception("Error when computing Mesh")
+
     stop = time.monotonic()
     time_seq = stop-start
 
     start = time.monotonic()
     is_done = par_mesh.Compute()
-    assert is_done
+    if not is_done:
+        raise Exception("Error when computing Mesh")
+
     stop = time.monotonic()
     time_par = stop-start