From ff2f2dc1d47741a1faa246562b79860e640f02ac Mon Sep 17 00:00:00 2001 From: gfyoung Date: Sat, 14 Oct 2017 16:41:43 -0700 Subject: [PATCH] MAINT: Catch read_html slow test warning Follow up to gh-17872. xref gh-17870, gh-17865. --- pandas/tests/io/test_html.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandas/tests/io/test_html.py b/pandas/tests/io/test_html.py index 6fc080c8d9090..8dfae2733ef20 100644 --- a/pandas/tests/io/test_html.py +++ b/pandas/tests/io/test_html.py @@ -335,8 +335,10 @@ def test_multiindex_header_index(self): @pytest.mark.slow def test_multiindex_header_skiprows_tuples(self): - df = self._bank_data(header=[0, 1], skiprows=1, tupleize_cols=True)[0] - assert isinstance(df.columns, Index) + with tm.assert_produces_warning(FutureWarning, check_stacklevel=False): + df = self._bank_data(header=[0, 1], skiprows=1, + tupleize_cols=True)[0] + assert isinstance(df.columns, Index) @pytest.mark.slow def test_multiindex_header_skiprows(self):