Skip to content

Commit 3ad8335

Browse files
committed
TST: fix and xfail test for 19027
1 parent 53299e8 commit 3ad8335

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/frame/test_mutate_columns.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def test_delitem(self):
174174
del self.frame['A']
175175
assert 'A' not in self.frame
176176

177+
@pytest.mark.xfail(reason='GH 19027 (x in pd.MultiIndex.drop(x))')
177178
def test_delitem_multiindex(self):
178179
midx = MultiIndex.from_product([['A', 'B'], [1, 2]])
179180
df = DataFrame(np.random.randn(4, 4), columns=midx)
@@ -195,7 +196,7 @@ def test_delitem_multiindex(self):
195196

196197
# xref: https://github.com/pandas-dev/pandas/issues/2770
197198
# the 'A' is STILL in the columns!
198-
assert 'A' in df.columns
199+
assert 'A' not in df.columns
199200
with pytest.raises(KeyError):
200201
del df['A']
201202

0 commit comments

Comments
 (0)