Skip to content

Commit

Permalink
Fix 70ae301
Browse files Browse the repository at this point in the history
70ae301 requires a recent enough GDAL trunk
or GDAL 2.1.2
  • Loading branch information
rouault committed Oct 18, 2016
1 parent 9d316b0 commit 194004b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/src/python/test_provider_ogr_gpkg.py
Expand Up @@ -173,7 +173,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')

Expand Down

0 comments on commit 194004b

Please sign in to comment.