Skip to content

Commit 5445a0d

Browse files
committed
Discard now redundant parts of a failing test
1 parent fc9d0a2 commit 5445a0d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/tests/sparse/test_frame.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,6 @@ def test_set_value(self):
441441
with tm.assert_produces_warning(FutureWarning,
442442
check_stacklevel=False):
443443
res = self.frame.set_value('foobar', 'B', 1.5)
444-
assert res is not self.frame
445444
assert res.index[-1] == 'foobar'
446445
with tm.assert_produces_warning(FutureWarning,
447446
check_stacklevel=False):
@@ -450,9 +449,8 @@ def test_set_value(self):
450449
with tm.assert_produces_warning(FutureWarning,
451450
check_stacklevel=False):
452451
res2 = res.set_value('foobar', 'qux', 1.5)
453-
assert res2 is not res
454452
tm.assert_index_equal(res2.columns,
455-
pd.Index(list(self.frame.columns) + ['qux']))
453+
pd.Index(list(self.frame.columns)))
456454
with tm.assert_produces_warning(FutureWarning,
457455
check_stacklevel=False):
458456
assert res2.get_value('foobar', 'qux') == 1.5

0 commit comments

Comments
 (0)