@@ -124,9 +124,9 @@ def test_figure_savefig_geotiff():
124
124
125
125
# Check if a TIFF is georeferenced or not
126
126
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
130
130
131
131
# GeoTIFF
132
132
with rioxarray .open_rasterio (geofname ) as xds :
@@ -152,15 +152,17 @@ def test_figure_savefig_geotiff():
152
152
# TIFF
153
153
with pytest .warns (expected_warning = NotGeoreferencedWarning ) as record :
154
154
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
+ )
164
166
geofname .unlink ()
165
167
fname .unlink ()
166
168
0 commit comments