File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -357,14 +357,11 @@ def test_replace_empty_list(using_copy_on_write):
357
357
358
358
359
359
@pytest .mark .parametrize ("value" , ["d" , None ])
360
- def test_replace_object_list_inplace (using_copy_on_write , using_infer_string , value ):
360
+ def test_replace_object_list_inplace (using_copy_on_write , value ):
361
361
df = DataFrame ({"a" : ["a" , "b" , "c" ]}, dtype = object )
362
362
arr = get_array (df , "a" )
363
- # with future.infer_string we get warning about object dtype getting cast
364
- warning = FutureWarning if using_infer_string and value is not None else None
365
- with tm .assert_produces_warning (warning ):
366
- df .replace (["c" ], value , inplace = True )
367
- if (using_copy_on_write or value is None ) and not warning :
363
+ df .replace (["c" ], value , inplace = True )
364
+ if using_copy_on_write or value is None :
368
365
assert np .shares_memory (arr , get_array (df , "a" ))
369
366
else :
370
367
# This could be inplace
You can’t perform that action at this time.
0 commit comments