File tree 1 file changed +1
-3
lines changed 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -441,7 +441,6 @@ def test_set_value(self):
441
441
with tm .assert_produces_warning (FutureWarning ,
442
442
check_stacklevel = False ):
443
443
res = self .frame .set_value ('foobar' , 'B' , 1.5 )
444
- assert res is not self .frame
445
444
assert res .index [- 1 ] == 'foobar'
446
445
with tm .assert_produces_warning (FutureWarning ,
447
446
check_stacklevel = False ):
@@ -450,9 +449,8 @@ def test_set_value(self):
450
449
with tm .assert_produces_warning (FutureWarning ,
451
450
check_stacklevel = False ):
452
451
res2 = res .set_value ('foobar' , 'qux' , 1.5 )
453
- assert res2 is not res
454
452
tm .assert_index_equal (res2 .columns ,
455
- pd .Index (list (self .frame .columns ) + [ 'qux' ] ))
453
+ pd .Index (list (self .frame .columns )))
456
454
with tm .assert_produces_warning (FutureWarning ,
457
455
check_stacklevel = False ):
458
456
assert res2 .get_value ('foobar' , 'qux' ) == 1.5
You can’t perform that action at this time.
0 commit comments