From 2cdf0e64601e52a0ef26e58134515465585314f4 Mon Sep 17 00:00:00 2001 From: gfyoung Date: Sat, 14 Oct 2017 17:33:11 -0700 Subject: [PATCH] TST: Catch read_html slow test warning (#17874) 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 6fc080c8d9090e..8dfae2733ef207 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):