Skip to content

Commit 8c37370

Browse files
committed
Fix 70ae301
70ae301 requires a recent enough GDAL trunk or GDAL 2.1.2
1 parent 700441e commit 8c37370

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/src/python/test_provider_ogr_gpkg.py

+6
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,13 @@ def testGeopackageExtentUpdate(self):
171171
f.SetGeometry(ogr.CreateGeometryFromWkt('POINT(1 0.5)'))
172172
lyr.CreateFeature(f)
173173
f = None
174+
gdal.ErrorReset()
175+
ds.ExecuteSQL('RECOMPUTE EXTENT ON test')
176+
has_error = gdal.GetLastErrorMsg() != ''
174177
ds = None
178+
if has_error:
179+
print('Too old GDAL trunk version. Please update')
180+
return
175181

176182
vl = QgsVectorLayer(u'{}'.format(tmpfile), u'test', u'ogr')
177183

0 commit comments

Comments
 (0)