From f75f2addbbc52460e41acda71087adb4023aa922 Mon Sep 17 00:00:00 2001 From: Brendan Collins Date: Tue, 19 May 2026 08:09:35 -0700 Subject: [PATCH] tests: gate VRT int-source tests on tifffile (#2092) The three VRT tests in test_masked_nodata_attr_2092 import tifffile inside the _write_int_vrt helper, but tifffile is not in the [tests] extras, so CI fails with ModuleNotFoundError. Switch to pytest.importorskip, matching the pattern used in other geotiff tests. --- xrspatial/geotiff/tests/test_masked_nodata_attr_2092.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xrspatial/geotiff/tests/test_masked_nodata_attr_2092.py b/xrspatial/geotiff/tests/test_masked_nodata_attr_2092.py index 70b5e5d05..ad35eab84 100644 --- a/xrspatial/geotiff/tests/test_masked_nodata_attr_2092.py +++ b/xrspatial/geotiff/tests/test_masked_nodata_attr_2092.py @@ -202,7 +202,7 @@ def _write_int_vrt(tmp_path, src_basename, vrt_basename, sentinel=30): in-repo VRT reader; without them the reader returns a zero-fill buffer instead of decoding the source. """ - import tifffile + tifffile = pytest.importorskip("tifffile") src = str(tmp_path / src_basename) tifffile.imwrite(src, np.array( [[10, 20, 30], [40, 50, 60]], dtype=np.int16,