@@ -431,30 +431,20 @@ def test_set_value(self):
431
431
432
432
# ok, as the index gets converted to object
433
433
frame = self .frame .copy ()
434
- with tm .assert_produces_warning (FutureWarning ,
435
- check_stacklevel = False ):
436
- res = frame .set_value ('foobar' , 'B' , 1.5 )
434
+ res = frame .set_value ('foobar' , 'B' , 1.5 )
437
435
assert res .index .dtype == 'object'
438
436
439
437
res = self .frame
440
438
res .index = res .index .astype (object )
441
439
442
- with tm .assert_produces_warning (FutureWarning ,
443
- check_stacklevel = False ):
444
- res = self .frame .set_value ('foobar' , 'B' , 1.5 )
440
+ res = self .frame .set_value ('foobar' , 'B' , 1.5 )
445
441
assert res .index [- 1 ] == 'foobar'
446
- with tm .assert_produces_warning (FutureWarning ,
447
- check_stacklevel = False ):
448
- assert res .get_value ('foobar' , 'B' ) == 1.5
442
+ assert res .get_value ('foobar' , 'B' ) == 1.5
449
443
450
- with tm .assert_produces_warning (FutureWarning ,
451
- check_stacklevel = False ):
452
- res2 = res .set_value ('foobar' , 'qux' , 1.5 )
444
+ res2 = res .set_value ('foobar' , 'qux' , 1.5 )
453
445
tm .assert_index_equal (res2 .columns ,
454
446
pd .Index (list (self .frame .columns )))
455
- with tm .assert_produces_warning (FutureWarning ,
456
- check_stacklevel = False ):
457
- assert res2 .get_value ('foobar' , 'qux' ) == 1.5
447
+ assert res2 .get_value ('foobar' , 'qux' ) == 1.5
458
448
459
449
def test_fancy_index_misc (self ):
460
450
# axis = 0
0 commit comments