summaryrefslogtreecommitdiff
path: root/tests/gis_tests
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2025-08-12 08:47:03 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-08-21 16:46:41 +0200
commitfb0d463b1f88a38f3e7cd8d66ed6c69309f97901 (patch)
tree506c10b0a18b191fe50fde775273d20ad031686d /tests/gis_tests
parent7063d31cc37028e0f945faa43030ce23dc1a5c23 (diff)
Fixed #36382 -- Confirmed support for GDAL 3.11.
TIGER driver was removed in GDAL 3.11. https://github.com/OSGeo/gdal/commit/eb793be0395ccba50e053a46b30cb90deb530990
Diffstat (limited to 'tests/gis_tests')
-rw-r--r--tests/gis_tests/gdal_tests/test_driver.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/gis_tests/gdal_tests/test_driver.py b/tests/gis_tests/gdal_tests/test_driver.py
index 0d9423bc85..4bcea5f16c 100644
--- a/tests/gis_tests/gdal_tests/test_driver.py
+++ b/tests/gis_tests/gdal_tests/test_driver.py
@@ -1,13 +1,12 @@
import unittest
from unittest import mock
-from django.contrib.gis.gdal import Driver, GDALException
+from django.contrib.gis.gdal import GDAL_VERSION, Driver, GDALException
valid_drivers = (
# vector
"ESRI Shapefile",
"MapInfo File",
- "TIGER",
"S57",
"DGN",
"Memory",
@@ -25,7 +24,6 @@ invalid_drivers = ("Foo baz", "clucka", "ESRI Shp", "ESRI rast")
aliases = {
"eSrI": "ESRI Shapefile",
- "TigER/linE": "TIGER",
"SHAPE": "ESRI Shapefile",
"sHp": "ESRI Shapefile",
"tiFf": "GTiff",
@@ -34,6 +32,14 @@ aliases = {
"jpG": "JPEG",
}
+if GDAL_VERSION[:2] <= (3, 10):
+ aliases.update(
+ {
+ "tiger": "TIGER",
+ "tiger/line": "TIGER",
+ }
+ )
+
class DriverTest(unittest.TestCase):
def test01_valid_driver(self):