mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
Disable broken test for automatic transaction groups on GDAL >= 3.5
This functionality is broken on newer GDAL versions, due to incorrect assumptions at time of development. See https://github.com/qgis/QGIS/pull/59797#issuecomment-2544133498 Parties interested in seeing this test resurrected are welcome to submit fixes.
This commit is contained in:
parent
464b63d47c
commit
06291f790c
@ -11,6 +11,7 @@ __date__ = "15/07/2016"
|
||||
__copyright__ = "Copyright 2016, The QGIS Project"
|
||||
|
||||
import os
|
||||
from osgeo import gdal
|
||||
|
||||
from qgis.PyQt.QtCore import QTemporaryDir, QVariant
|
||||
from qgis.PyQt.QtTest import QSignalSpy
|
||||
@ -31,6 +32,10 @@ from qgis.testing import start_app, QgisTestCase
|
||||
start_app()
|
||||
|
||||
|
||||
def GDAL_COMPUTE_VERSION(maj, min, rev):
|
||||
return (maj) * 1000000 + (min) * 10000 + (rev) * 100
|
||||
|
||||
|
||||
def createEmptyLayer():
|
||||
layer = QgsVectorLayer(
|
||||
"Point?field=fldtxt:string&field=fldint:integer", "addfeat", "memory"
|
||||
@ -843,7 +848,12 @@ class TestQgsVectorLayerEditBuffer(QgisTestCase):
|
||||
self.assertEqual(f.attribute(2), None)
|
||||
|
||||
_test(Qgis.TransactionMode.Disabled)
|
||||
_test(Qgis.TransactionMode.AutomaticGroups)
|
||||
|
||||
# THIS FUNCTIONALITY IS BROKEN ON NEWER GDAL VERSIONS, DUE TO INCORRECT
|
||||
# assumptions at time of development. See https://github.com/qgis/QGIS/pull/59797#issuecomment-2544133498
|
||||
if int(gdal.VersionInfo("VERSION_NUM")) < GDAL_COMPUTE_VERSION(3, 5, 0):
|
||||
_test(Qgis.TransactionMode.AutomaticGroups)
|
||||
|
||||
_test(Qgis.TransactionMode.BufferedGroups)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user