Skip to content

Commit

Permalink
skip Int8 test for GDAL < 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ninsbl committed Sep 2, 2024
1 parent 96c1485 commit 2babe10
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions raster/r.in.gdal/testsuite/test_r_in_gdal.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import unittest

import osgeo
from subprocess import check_output

from grass.gunittest.case import TestCase

Expand Down Expand Up @@ -311,7 +311,15 @@ def test_netCDF_3d_5(self):
self.assertLooksLike(map_list, text_from_file)

@unittest.skipIf(
osgeo.gdal_version[0:2] < (3, 7),
tuple(
map(
int,
check_output(["gdal-config", "--version"])
.decode("UTF8")
.split(".")[0:2],
)
)
< (3, 7),
"GDAL version too old. Int8 support was introduced in GDAL 3.7",
)
def test_int8_data(self):
Expand Down

0 comments on commit 2babe10

Please sign in to comment.