@@ -133,7 +133,7 @@ def test_arith_series_with_array(self, data, all_arithmetic_operators):
133
133
def test_fillna_frame (self , data_missing ):
134
134
msg = "ExtensionArray.fillna added a 'copy' keyword"
135
135
with tm .assert_produces_warning (
136
- FutureWarning , match = msg , check_stacklevel = False
136
+ DeprecationWarning , match = msg , check_stacklevel = False
137
137
):
138
138
super ().test_fillna_frame (data_missing )
139
139
@@ -166,7 +166,7 @@ def test_fillna_no_op_returns_copy(self, data):
166
166
def test_fillna_series (self , data_missing ):
167
167
msg = "ExtensionArray.fillna added a 'copy' keyword"
168
168
with tm .assert_produces_warning (
169
- FutureWarning , match = msg , check_stacklevel = False
169
+ DeprecationWarning , match = msg , check_stacklevel = False
170
170
):
171
171
super ().test_fillna_series (data_missing )
172
172
@@ -178,13 +178,13 @@ def test_fillna_series_method(self, data_missing, fillna_method):
178
178
super ().test_fillna_series_method (data_missing , fillna_method )
179
179
180
180
def test_fillna_copy_frame (self , data_missing , using_copy_on_write ):
181
- warn = FutureWarning if not using_copy_on_write else None
181
+ warn = DeprecationWarning if not using_copy_on_write else None
182
182
msg = "ExtensionArray.fillna added a 'copy' keyword"
183
183
with tm .assert_produces_warning (warn , match = msg , check_stacklevel = False ):
184
184
super ().test_fillna_copy_frame (data_missing )
185
185
186
186
def test_fillna_copy_series (self , data_missing , using_copy_on_write ):
187
- warn = FutureWarning if not using_copy_on_write else None
187
+ warn = DeprecationWarning if not using_copy_on_write else None
188
188
msg = "ExtensionArray.fillna added a 'copy' keyword"
189
189
with tm .assert_produces_warning (warn , match = msg , check_stacklevel = False ):
190
190
super ().test_fillna_copy_series (data_missing )
0 commit comments