Skip to content
Permalink
Browse files

Fix 70ae301

70ae301 requires a recent enough GDAL trunk
or GDAL 2.1.2
  • Loading branch information
rouault committed Oct 18, 2016
1 parent 700441e commit 8c37370310e137cf716f23a0c1edb2f65d1a9cb2
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/src/python/test_provider_ogr_gpkg.py
@@ -171,7 +171,13 @@ def testGeopackageExtentUpdate(self):
f.SetGeometry(ogr.CreateGeometryFromWkt('POINT(1 0.5)'))
lyr.CreateFeature(f)
f = None
gdal.ErrorReset()
ds.ExecuteSQL('RECOMPUTE EXTENT ON test')
has_error = gdal.GetLastErrorMsg() != ''
ds = None
if has_error:
print('Too old GDAL trunk version. Please update')
return

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

0 comments on commit 8c37370

Please sign in to comment.
You can’t perform that action at this time.