Skip to content
Permalink
Browse files
Adapt test to GDAL 3.4
  • Loading branch information
elpaso committed Oct 14, 2021
1 parent 0c4d0ea commit d7af7d28a41c87e036234d41574b7b1661f53304
Showing with 6 additions and 1 deletion.
  1. +6 −1 tests/src/python/test_provider_ogr.py
@@ -2304,7 +2304,12 @@ def testGeoJsonFieldOrder(self):
self.assertEqual(features[1].attribute('C'), 'C')

self.assertTrue(vl.commitChanges())
self.assertEqual(vl.fields().names(), ['A', 'C', 'B'])

# This has been fixed in GDAL >= 3.4
if int(gdal.VersionInfo('VERSION_NUM')) >= GDAL_COMPUTE_VERSION(3, 4, 0):
self.assertEqual(vl.fields().names(), ['A', 'B', 'C'])
else:
self.assertEqual(vl.fields().names(), ['A', 'C', 'B'])

features = [f for f in vl.getFeatures()]

0 comments on commit d7af7d2

Please sign in to comment.