@@ -124,9 +124,9 @@ def test_figure_savefig_geotiff():
124124
125125 # Check if a TIFF is georeferenced or not
126126 if _HAS_RIOXARRAY :
127- import rioxarray
128- from rasterio .errors import NotGeoreferencedWarning
129- from rasterio .transform import Affine
127+ import rioxarray # noqa: PLC0415
128+ from rasterio .errors import NotGeoreferencedWarning # noqa: PLC0415
129+ from rasterio .transform import Affine # noqa: PLC0415
130130
131131 # GeoTIFF
132132 with rioxarray .open_rasterio (geofname ) as xds :
@@ -152,15 +152,17 @@ def test_figure_savefig_geotiff():
152152 # TIFF
153153 with pytest .warns (expected_warning = NotGeoreferencedWarning ) as record :
154154 with rioxarray .open_rasterio (fname ) as xds :
155- assert xds .rio .crs is None
156- npt .assert_allclose (
157- actual = xds .rio .bounds (), desired = (0.0 , 0.0 , 1331.0 , 1257.0 )
158- )
159- assert xds .rio .shape == (1257 , 1331 )
160- assert xds .rio .transform () == Affine (
161- a = 1.0 , b = 0.0 , c = 0.0 , d = 0.0 , e = 1.0 , f = 0.0
162- )
163- assert len (record ) == 1
155+ pass
156+ assert len (record ) == 1
157+ with rioxarray .open_rasterio (fname ) as xds :
158+ assert xds .rio .crs is None
159+ npt .assert_allclose (
160+ actual = xds .rio .bounds (), desired = (0.0 , 0.0 , 1331.0 , 1257.0 )
161+ )
162+ assert xds .rio .shape == (1257 , 1331 )
163+ assert xds .rio .transform () == Affine (
164+ a = 1.0 , b = 0.0 , c = 0.0 , d = 0.0 , e = 1.0 , f = 0.0
165+ )
164166 geofname .unlink ()
165167 fname .unlink ()
166168
0 commit comments