Skip to content

Commit baaa253

Browse files
gfyoungKrzysztof Chomski
authored and
Krzysztof Chomski
committed
TST: Catch read_html slow test warning (pandas-dev#17874)
Follow up to pandas-devgh-17872. xref pandas-devgh-17870, pandas-devgh-17865.
1 parent ed026d3 commit baaa253

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tests/io/test_html.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,10 @@ def test_multiindex_header_index(self):
335335

336336
@pytest.mark.slow
337337
def test_multiindex_header_skiprows_tuples(self):
338-
df = self._bank_data(header=[0, 1], skiprows=1, tupleize_cols=True)[0]
339-
assert isinstance(df.columns, Index)
338+
with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
339+
df = self._bank_data(header=[0, 1], skiprows=1,
340+
tupleize_cols=True)[0]
341+
assert isinstance(df.columns, Index)
340342

341343
@pytest.mark.slow
342344
def test_multiindex_header_skiprows(self):

0 commit comments

Comments
 (0)