File tree 1 file changed +3
-6
lines changed
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):
318
318
xp .columns = ["A" , "A" , "B" ]
319
319
tm .assert_frame_equal (rs , xp )
320
320
321
- def test_set_value_by_index (self , using_array_manager ):
321
+ def test_set_value_by_index (self ):
322
322
# See gh-12344
323
- warn = FutureWarning if using_array_manager else None
324
- msg = "will attempt to set the values inplace"
325
-
326
323
df = DataFrame (np .arange (9 ).reshape (3 , 3 ).T )
327
324
df .columns = list ("AAA" )
328
325
expected = df .iloc [:, 2 ]
329
326
330
- with tm .assert_produces_warning (warn , match = msg ):
327
+ with tm .assert_produces_warning (None ):
331
328
df .iloc [:, 0 ] = 3
332
329
tm .assert_series_equal (df .iloc [:, 2 ], expected )
333
330
334
331
df = DataFrame (np .arange (9 ).reshape (3 , 3 ).T )
335
332
df .columns = [2 , float (2 ), str (2 )]
336
333
expected = df .iloc [:, 1 ]
337
334
338
- with tm .assert_produces_warning (warn , match = msg ):
335
+ with tm .assert_produces_warning (None ):
339
336
df .iloc [:, 0 ] = 3
340
337
tm .assert_series_equal (df .iloc [:, 1 ], expected )
You can’t perform that action at this time.
0 commit comments