From 80976bd89e9e1fdfb98c4d902ca4dc59bd3d1d46 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 3 Nov 2025 21:27:54 +0100 Subject: [4.2.x] Skipped test_compressed_file_based_raster_creation() test on GDAL 3.5+. --- tests/gis_tests/gdal_tests/test_raster.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/gis_tests/gdal_tests/test_raster.py b/tests/gis_tests/gdal_tests/test_raster.py index cbe7d6b369..e1c1353156 100644 --- a/tests/gis_tests/gdal_tests/test_raster.py +++ b/tests/gis_tests/gdal_tests/test_raster.py @@ -6,7 +6,7 @@ import zipfile from pathlib import Path from unittest import mock -from django.contrib.gis.gdal import GDALRaster, SpatialReference +from django.contrib.gis.gdal import GDAL_VERSION, GDALRaster, SpatialReference from django.contrib.gis.gdal.error import GDALException from django.contrib.gis.gdal.raster.band import GDALBand from django.contrib.gis.shortcuts import numpy @@ -406,6 +406,8 @@ class GDALRasterTests(SimpleTestCase): self.assertIn("NAD83 / Florida GDL Albers", infos) def test_compressed_file_based_raster_creation(self): + if GDAL_VERSION > (3, 4): + self.skipTest("GDAL_PIXEL_TYPES are missing types from GDAL 3.5+.") rstfile = tempfile.NamedTemporaryFile(suffix=".tif") # Make a compressed copy of an existing raster. compressed = self.rs.warp( -- cgit v1.3