Skip to content

Commit eb600ba

Browse files
committed
Guard tifffile import with pytest.importorskip on #1635
Matches the convention used elsewhere in xrspatial/geotiff/tests/. Test module no longer hard-fails collection on machines without tifffile installed.
1 parent 295b9a3 commit eb600ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xrspatial/geotiff/tests/test_user_defined_crs_wkt_1632.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import pytest
2121
import xarray as xr
2222

23-
import tifffile
23+
tifffile = pytest.importorskip("tifffile")
2424

2525
from xrspatial.geotiff import open_geotiff, to_geotiff
2626
from xrspatial.geotiff._geotags import _looks_like_wkt

0 commit comments

Comments
 (0)