@@ -20,7 +20,7 @@ def test_tranform_wgs84_to_custom():
2020
2121
2222def test_transform_wgs84_to_alaska ():
23- with pytest .warns (FutureWarning ):
23+ with pytest .warns (DeprecationWarning ):
2424 lat_lon_proj = pyproj .Proj (init = "epsg:4326" , preserve_units = False )
2525 alaska_aea_proj = pyproj .Proj (init = "epsg:2964" , preserve_units = False )
2626 test = (- 179.72638 , 49.752533 )
@@ -30,7 +30,7 @@ def test_transform_wgs84_to_alaska():
3030
3131def test_illegal_transformation ():
3232 # issue 202
33- with pytest .warns (FutureWarning ):
33+ with pytest .warns (DeprecationWarning ):
3434 p1 = pyproj .Proj (init = "epsg:4326" )
3535 p2 = pyproj .Proj (init = "epsg:3857" )
3636 xx , yy = pyproj .transform (
@@ -46,7 +46,7 @@ def test_illegal_transformation():
4646
4747def test_lambert_conformal_transform ():
4848 # issue 207
49- with pytest .warns (FutureWarning ):
49+ with pytest .warns (DeprecationWarning ):
5050 Midelt = pyproj .Proj (init = "epsg:26191" )
5151 WGS84 = pyproj .Proj (init = "epsg:4326" )
5252
@@ -80,7 +80,7 @@ def test_equivalent_crs__different():
8080
8181
8282def test_equivalent_proj ():
83- with pytest .warns (FutureWarning ):
83+ with pytest .warns (DeprecationWarning ):
8484 transformer = Transformer .from_proj (
8585 "+init=epsg:4326" , pyproj .Proj (4326 ).crs .to_proj4 (), skip_equivalent = True
8686 )
@@ -231,35 +231,35 @@ def test_itransform_time_3rd_invalid():
231231
232232
233233def test_transform_no_error ():
234- with pytest .warns (FutureWarning ):
234+ with pytest .warns (DeprecationWarning ):
235235 pj = Proj (init = "epsg:4555" )
236236 pjx , pjy = pj (116.366 , 39.867 )
237237 transform (pj , Proj (4326 ), pjx , pjy , radians = True , errcheck = True )
238238
239239
240240def test_itransform_no_error ():
241- with pytest .warns (FutureWarning ):
241+ with pytest .warns (DeprecationWarning ):
242242 pj = Proj (init = "epsg:4555" )
243243 pjx , pjy = pj (116.366 , 39.867 )
244244 list (itransform (pj , Proj (4326 ), [(pjx , pjy )], radians = True , errcheck = True ))
245245
246246
247247def test_transform_no_exception ():
248248 # issue 249
249- with pytest .warns (FutureWarning ):
249+ with pytest .warns (DeprecationWarning ):
250250 transformer = Transformer .from_proj ("+init=epsg:4326" , "+init=epsg:27700" )
251251 transformer .transform (1.716073972 , 52.658007833 , errcheck = True )
252252 transformer .itransform ([(1.716073972 , 52.658007833 )], errcheck = True )
253253
254254
255255def test_transform__out_of_bounds ():
256- with pytest .warns (FutureWarning ):
256+ with pytest .warns (DeprecationWarning ):
257257 transformer = Transformer .from_proj ("+init=epsg:4326" , "+init=epsg:27700" )
258258 assert np .all (np .isinf (transformer .transform (100000 , 100000 , errcheck = True )))
259259
260260
261261def test_transform_radians ():
262- with pytest .warns (FutureWarning ):
262+ with pytest .warns (DeprecationWarning ):
263263 WGS84 = pyproj .Proj ("+init=EPSG:4326" )
264264 ECEF = pyproj .Proj (proj = "geocent" , ellps = "WGS84" , datum = "WGS84" )
265265 assert_almost_equal (
@@ -283,7 +283,7 @@ def test_transform_radians():
283283
284284
285285def test_itransform_radians ():
286- with pytest .warns (FutureWarning ):
286+ with pytest .warns (DeprecationWarning ):
287287 WGS84 = pyproj .Proj ("+init=EPSG:4326" )
288288 ECEF = pyproj .Proj (proj = "geocent" , ellps = "WGS84" , datum = "WGS84" )
289289 assert_almost_equal (
0 commit comments