diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2025-11-03 21:27:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-03 21:27:54 +0100 |
| commit | 80976bd89e9e1fdfb98c4d902ca4dc59bd3d1d46 (patch) | |
| tree | 5903e72ccdd7055f80125e99a326372d4236b215 | |
| parent | 7838add7e15da656e901d20153cd44fa551b627e (diff) | |
[4.2.x] Skipped test_compressed_file_based_raster_creation() test on GDAL 3.5+.
| -rw-r--r-- | tests/gis_tests/gdal_tests/test_raster.py | 4 |
1 files changed, 3 insertions, 1 deletions
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( |
