Salome HOME
Workaround failure of test Tools/MacMesh/PressureValve.py
authoreap <eap@opencascade.com>
Wed, 18 Jul 2018 13:02:57 +0000 (16:02 +0300)
committereap <eap@opencascade.com>
Wed, 18 Jul 2018 13:02:57 +0000 (16:02 +0300)
src/Tools/MacMesh/MacMesh/MacObject.py

index c541fd9..becca33 100644 (file)
@@ -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)))