From: eap Date: Wed, 18 Jul 2018 13:02:57 +0000 (+0300) Subject: Workaround failure of test Tools/MacMesh/PressureValve.py X-Git-Tag: SHAPER_V9_1_0RC1~17^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b4ddd97db887d6928cf2b5bbad99cc6710266487;p=modules%2Fsmesh.git Workaround failure of test Tools/MacMesh/PressureValve.py --- diff --git a/src/Tools/MacMesh/MacMesh/MacObject.py b/src/Tools/MacMesh/MacMesh/MacObject.py index c541fd949..becca33dc 100644 --- a/src/Tools/MacMesh/MacMesh/MacObject.py +++ b/src/Tools/MacMesh/MacMesh/MacObject.py @@ -185,6 +185,8 @@ class MacObject: self.DirectionalMeshParams = MeshPar self.MeshPar[0] = GenFunctions.CompatibilityTest(self) + if isinstance( self.MeshPar[0], list ): + return # workaround, as CompatibilityTest() can return a list if self.MeshPar[0] < 0 : Alarms.Message(4) if self.MeshPar[0] == -1 : print(("Problem encountered with object(s) no. "+str(ObjectsInvolved)))