X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=test%2Fex07_hole1partition.py;h=3b315916fd9f4c310387366150e32035035e928e;hb=120207d740662965e1ca6dfe8325d1e7edad0e73;hp=53da036ac85fa044c93ed1c1c7fb15d09333ba06;hpb=4cf07a14111e98e8889620ee7e6371574c31a50c;p=modules%2Fsmesh.git diff --git a/test/ex07_hole1partition.py b/test/ex07_hole1partition.py index 53da036ac..3b315916f 100644 --- a/test/ex07_hole1partition.py +++ b/test/ex07_hole1partition.py @@ -1,5 +1,5 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE # # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -104,7 +104,9 @@ hexa.Hexahedron() # Mesh calculus # ------------- -hexa.Compute() +isDone = hexa.Compute() +if not isDone: + raise Exception("Error when computing Mesh") # Update object browser # ---------------------