File tree 3 files changed +4
-10
lines changed
3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ def drop_coords(
442
442
f"other variables: { list (maybe_midx .index .names )!r} . "
443
443
f"This will raise an error in the future. Use `.drop_vars({ idx_coord_names !r} )` before "
444
444
"assigning new coordinate values." ,
445
- DeprecationWarning ,
445
+ FutureWarning ,
446
446
stacklevel = 4 ,
447
447
)
448
448
for k in idx_coord_names :
Original file line number Diff line number Diff line change @@ -1501,9 +1501,7 @@ def test_assign_coords(self) -> None:
1501
1501
1502
1502
def test_assign_coords_existing_multiindex (self ) -> None :
1503
1503
data = self .mda
1504
- with pytest .warns (
1505
- DeprecationWarning , match = r"Updating MultiIndexed coordinate"
1506
- ):
1504
+ with pytest .warns (FutureWarning , match = r"Updating MultiIndexed coordinate" ):
1507
1505
data .assign_coords (x = range (4 ))
1508
1506
1509
1507
def test_coords_alignment (self ) -> None :
Original file line number Diff line number Diff line change @@ -4136,14 +4136,10 @@ def test_assign_multiindex_level(self) -> None:
4136
4136
4137
4137
def test_assign_coords_existing_multiindex (self ) -> None :
4138
4138
data = create_test_multiindex ()
4139
- with pytest .warns (
4140
- DeprecationWarning , match = r"Updating MultiIndexed coordinate"
4141
- ):
4139
+ with pytest .warns (FutureWarning , match = r"Updating MultiIndexed coordinate" ):
4142
4140
data .assign_coords (x = range (4 ))
4143
4141
4144
- with pytest .warns (
4145
- DeprecationWarning , match = r"Updating MultiIndexed coordinate"
4146
- ):
4142
+ with pytest .warns (FutureWarning , match = r"Updating MultiIndexed coordinate" ):
4147
4143
data .assign (x = range (4 ))
4148
4144
4149
4145
# https://github.com/pydata/xarray/issues/7097 (coord names updated)
You can’t perform that action at this time.
0 commit comments