Skip to content

Commit 80976bd

Browse files
authored
[4.2.x] Skipped test_compressed_file_based_raster_creation() test on GDAL 3.5+.
1 parent 7838add commit 80976bd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/gis_tests/gdal_tests/test_raster.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pathlib import Path
77
from unittest import mock
88

9-
from django.contrib.gis.gdal import GDALRaster, SpatialReference
9+
from django.contrib.gis.gdal import GDAL_VERSION, GDALRaster, SpatialReference
1010
from django.contrib.gis.gdal.error import GDALException
1111
from django.contrib.gis.gdal.raster.band import GDALBand
1212
from django.contrib.gis.shortcuts import numpy
@@ -406,6 +406,8 @@ def test_raster_info_accessor(self):
406406
self.assertIn("NAD83 / Florida GDL Albers", infos)
407407

408408
def test_compressed_file_based_raster_creation(self):
409+
if GDAL_VERSION > (3, 4):
410+
self.skipTest("GDAL_PIXEL_TYPES are missing types from GDAL 3.5+.")
409411
rstfile = tempfile.NamedTemporaryFile(suffix=".tif")
410412
# Make a compressed copy of an existing raster.
411413
compressed = self.rs.warp(

0 commit comments

Comments
 (0)