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 700441e commit 8c37370
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/src/python/test_provider_ogr_gpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 8c37370

Please sign in to comment.