Skip to content

Commit

Permalink
Fix tests. Input is a Polygon, and output is a multipolygon
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and nyalldawson committed Feb 12, 2021
1 parent b906464 commit a31190a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsgeometry_avoid_intersections.py
Expand Up @@ -60,7 +60,7 @@ def testNoSliverPolygons(self):
# create a geometry and remove its intersections with other geometries

g = QgsGeometry.fromWkt(newg_wkt)
assert g.avoidIntersections([l]) == 0
assert g.avoidIntersections([l]) == 2

# the resulting multi-polygon must have exactly three parts
# (in QGIS 2.0 it has one more tiny part that appears at the border between two of the original polygons)
Expand Down

0 comments on commit a31190a

Please sign in to comment.