From 174e822cfe488cec55f09022cb9d73d89c11ea34 Mon Sep 17 00:00:00 2001 From: Dan Baston Date: Fri, 17 Jan 2025 10:24:43 -0500 Subject: [PATCH] autotest gdal_calc: skip test failing on Windows --- autotest/pyscripts/test_gdal_calc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autotest/pyscripts/test_gdal_calc.py b/autotest/pyscripts/test_gdal_calc.py index cf99b239a63f..b0fd264db846 100755 --- a/autotest/pyscripts/test_gdal_calc.py +++ b/autotest/pyscripts/test_gdal_calc.py @@ -17,6 +17,7 @@ import os import shutil +import sys import pytest import test_py_scripts @@ -389,6 +390,9 @@ def test_gdal_calc_py_6(tmp_path): def test_gdal_calc_py_7a(script_path, tmp_path, stefan_full_rgba, opt_prefix): """test --optfile""" + if opt_prefix == "@" and sys.platform == "win32": + pytest.skip("@optfile is not read correctly on Windows") + infile = stefan_full_rgba out = tmp_path / "out.tif" opt_file = tmp_path / "opt"