[PY3] Fix Test Issue : EnumItem are not orderable

This commit is contained in:
Nicolas Geimer 2017-03-20 18:00:29 +01:00
parent 3a4c128626
commit 32fc746f07

View File

@ -8144,8 +8144,8 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
# Example: see GEOM_TestAll.py # Example: see GEOM_TestAll.py
if Limit == self.ShapeType["AUTO"]: if Limit == self.ShapeType["AUTO"]:
# automatic detection of the most appropriate shape limit type # automatic detection of the most appropriate shape limit type
lim = GEOM.SHAPE lim = GEOM.SHAPE._v
for s in ListShapes: lim = min( lim, s.GetMaxShapeType() ) for s in ListShapes: lim = min( lim, s.GetMaxShapeType()._v )
Limit = EnumToLong(lim) Limit = EnumToLong(lim)
pass pass
anObj = self.BoolOp.MakePartition(ListShapes, ListTools, anObj = self.BoolOp.MakePartition(ListShapes, ListTools,
@ -8217,8 +8217,8 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
""" """
if Limit == self.ShapeType["AUTO"]: if Limit == self.ShapeType["AUTO"]:
# automatic detection of the most appropriate shape limit type # automatic detection of the most appropriate shape limit type
lim = GEOM.SHAPE lim = GEOM.SHAPE._v
for s in ListShapes: lim = min( lim, s.GetMaxShapeType() ) for s in ListShapes: lim = min( lim, s.GetMaxShapeType()._v )
Limit = EnumToLong(lim) Limit = EnumToLong(lim)
pass pass
anObj = self.BoolOp.MakePartitionNonSelfIntersectedShape(ListShapes, ListTools, anObj = self.BoolOp.MakePartitionNonSelfIntersectedShape(ListShapes, ListTools,