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 @@ -318,23 +318,20 @@ def test_dup_columns_across_dtype(self):
318318 xp .columns = ["A" , "A" , "B" ]
319319 tm .assert_frame_equal (rs , xp )
320320
321- def test_set_value_by_index (self , using_array_manager ):
321+ def test_set_value_by_index (self ):
322322 # See gh-12344
323- warn = FutureWarning if using_array_manager else None
324- msg = "will attempt to set the values inplace"
325-
326323 df = DataFrame (np .arange (9 ).reshape (3 , 3 ).T )
327324 df .columns = list ("AAA" )
328325 expected = df .iloc [:, 2 ]
329326
330- with tm .assert_produces_warning (warn , match = msg ):
327+ with tm .assert_produces_warning (None ):
331328 df .iloc [:, 0 ] = 3
332329 tm .assert_series_equal (df .iloc [:, 2 ], expected )
333330
334331 df = DataFrame (np .arange (9 ).reshape (3 , 3 ).T )
335332 df .columns = [2 , float (2 ), str (2 )]
336333 expected = df .iloc [:, 1 ]
337334
338- with tm .assert_produces_warning (warn , match = msg ):
335+ with tm .assert_produces_warning (None ):
339336 df .iloc [:, 0 ] = 3
340337 tm .assert_series_equal (df .iloc [:, 1 ], expected )
You can’t perform that action at this time.
0 commit comments