@@ -431,30 +431,20 @@ def test_set_value(self):
431431
432432 # ok, as the index gets converted to object
433433 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 )
437435 assert res .index .dtype == 'object'
438436
439437 res = self .frame
440438 res .index = res .index .astype (object )
441439
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 )
445441 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
449443
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 )
453445 tm .assert_index_equal (res2 .columns ,
454446 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
458448
459449 def test_fancy_index_misc (self ):
460450 # axis = 0
0 commit comments