From b4ddd97db887d6928cf2b5bbad99cc6710266487 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 18 Jul 2018 16:02:57 +0300 Subject: [PATCH] Workaround failure of test Tools/MacMesh/PressureValve.py --- src/Tools/MacMesh/MacMesh/MacObject.py | 2 ++ 1 file changed, 2 insertions(+) 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))) -- 2.39.2