Skip to content

Commit aed9b92

Browse files
authored
TST: Catch read_html slow test warning (#17874)
Follow up to gh-17872. xref gh-17870, gh-17865.
1 parent 528fdaa commit aed9b92

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)