File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
pandas/tests/frame/methods Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -108,16 +108,14 @@ def test_fillna_mixed_float(self, mixed_float_frame):
108
108
_check_mixed_float (result , dtype = {"C" : None })
109
109
110
110
def test_fillna_empty (self , using_copy_on_write ):
111
+ if using_copy_on_write :
112
+ pytest .skip ("condition is unnecessary complex and is deprecated anyway" )
111
113
# empty frame (GH#2778)
112
114
df = DataFrame (columns = ["x" ])
113
115
for m in ["pad" , "backfill" ]:
114
116
msg = "Series.fillna with 'method' is deprecated"
115
117
with tm .assert_produces_warning (FutureWarning , match = msg ):
116
- if using_copy_on_write :
117
- with tm .assert_produces_warning (ChainedAssignmentError ):
118
- df .x .fillna (method = m , inplace = True )
119
- else :
120
- df .x .fillna (method = m , inplace = True )
118
+ df .x .fillna (method = m , inplace = True )
121
119
df .x .fillna (method = m )
122
120
123
121
def test_fillna_different_dtype (self ):
You can’t perform that action at this time.
0 commit comments