1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #33577 -- Confirmed support for GDAL 3.4.

This commit is contained in:
Mariusz Felisiak
2022-03-16 09:07:01 +01:00
committed by GitHub
parent 3b3f38b3b0
commit 970f5bf503
4 changed files with 17 additions and 9 deletions

View File

@@ -807,8 +807,13 @@ class GDALBandTests(SimpleTestCase):
band = rs.bands[0]
# Setting attributes in write mode raises exception in the _flush method
with self.assertRaises(GDALException):
setattr(band, "nodata_value", 10)
try:
with self.assertRaises(GDALException):
setattr(band, "nodata_value", 10)
finally:
pam_file = self.rs_path + ".aux.xml"
if os.path.isfile(pam_file):
os.remove(pam_file)
def test_band_data_setters(self):
# Create in-memory raster and get band