From 32fc746f076e3bfd0153df111a15ac2c2394137b Mon Sep 17 00:00:00 2001 From: Nicolas Geimer Date: Mon, 20 Mar 2017 18:00:29 +0100 Subject: [PATCH] [PY3] Fix Test Issue : EnumItem are not orderable --- src/GEOM_SWIG/geomBuilder.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, -- 2.39.2