Skip to content

Commit

Permalink
fix with Python < 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 28, 2022
1 parent 514739b commit 9af554e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsgeometry.py
Expand Up @@ -2400,7 +2400,7 @@ def circle_curvepolygon():
T = 'linestring_add_curve'
geoms[T] = polyline1_geom()
parts[T] = curve()
expec[T] = 'MultiLineString ({},{})'.format(polyline1_geom().asWkt().removeprefix('LineString '), curve().curveToLine().asWkt().removeprefix('LineString '))
expec[T] = 'MultiLineString ({},{})'.format(polyline1_geom().asWkt()[len('LineString '):], curve().curveToLine().asWkt()[len('LineString '):])

T = 'polygon_add_ring_1_point'
geoms[T] = polygon1_geom()
Expand Down Expand Up @@ -2480,7 +2480,7 @@ def circle_curvepolygon():
T = 'multipolygon_add_curvepolygon'
geoms[T] = multi_polygon1_geom()
parts[T] = circle_curvepolygon()
expec[T] = 'MultiPolygon ({},{})'.format(polygon1_geom().asWkt().removeprefix('Polygon '), circle_polygon().asWkt().removeprefix('Polygon '))
expec[T] = 'MultiPolygon ({},{})'.format(polygon1_geom().asWkt()[len('Polygon '):], circle_polygon().asWkt()[len('Polygon '):])

T = 'multisurface_add_curvepolygon'
geoms[T] = multi_surface_geom()
Expand Down

0 comments on commit 9af554e

Please sign in to comment.