From: Nicolas Geimer Date: Mon, 20 Mar 2017 17:00:29 +0000 (+0100) Subject: [PY3] Fix Test Issue : EnumItem are not orderable X-Git-Tag: V9_0_0~4^2~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=32fc746f076e3bfd0153df111a15ac2c2394137b;p=modules%2Fgeom.git [PY3] Fix Test Issue : EnumItem are not orderable --- diff --git a/src/GEOM_SWIG/geomBuilder.py b/src/GEOM_SWIG/geomBuilder.py index b367b5873..3c7413b0f 100644 --- a/src/GEOM_SWIG/geomBuilder.py +++ b/src/GEOM_SWIG/geomBuilder.py @@ -8144,8 +8144,8 @@ class geomBuilder(GEOM._objref_GEOM_Gen): # Example: see GEOM_TestAll.py if Limit == self.ShapeType["AUTO"]: # automatic detection of the most appropriate shape limit type - lim = GEOM.SHAPE - for s in ListShapes: lim = min( lim, s.GetMaxShapeType() ) + lim = GEOM.SHAPE._v + for s in ListShapes: lim = min( lim, s.GetMaxShapeType()._v ) Limit = EnumToLong(lim) pass anObj = self.BoolOp.MakePartition(ListShapes, ListTools, @@ -8217,8 +8217,8 @@ class geomBuilder(GEOM._objref_GEOM_Gen): """ if Limit == self.ShapeType["AUTO"]: # automatic detection of the most appropriate shape limit type - lim = GEOM.SHAPE - for s in ListShapes: lim = min( lim, s.GetMaxShapeType() ) + lim = GEOM.SHAPE._v + for s in ListShapes: lim = min( lim, s.GetMaxShapeType()._v ) Limit = EnumToLong(lim) pass anObj = self.BoolOp.MakePartitionNonSelfIntersectedShape(ListShapes, ListTools,