Skip to content

Commit

Permalink
r.in.gdal: Try avoiding error in calling gdal-config in skipif decora…
Browse files Browse the repository at this point in the history
…tor on Windows
  • Loading branch information
echoix committed Sep 21, 2024
1 parent c26e7db commit b6b5748
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion raster/r.in.gdal/testsuite/test_r_in_gdal.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""

import unittest
import sys

from subprocess import check_output

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

@unittest.skipIf(
tuple(
not sys.platform.startswith("win")
and tuple(
map(
int,
check_output(["gdal-config", "--version"])
Expand Down

0 comments on commit b6b5748

Please sign in to comment.