Skip to content

Commit 4bf4c4f

Browse files
committed
DEPS: skip html tests if html5lib is not installed pandas-dev#40198
1 parent 5d4cf66 commit 4bf4c4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/tests/io/test_html.py

+3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def assert_framelist_equal(list1, list2, *args, **kwargs):
6969

7070

7171
@td.skip_if_no("bs4")
72+
@td.skip_if_no("html5lib")
7273
def test_bs4_version_fails(monkeypatch, datapath):
7374
import bs4
7475

@@ -88,6 +89,7 @@ def test_invalid_flavor():
8889

8990
@td.skip_if_no("bs4")
9091
@td.skip_if_no("lxml")
92+
@td.skip_if_no("html5lib")
9193
def test_same_ordering(datapath):
9294
filename = datapath("io", "data", "html", "valid_markup.html")
9395
dfs_lxml = read_html(filename, index_col=0, flavor=["lxml"])
@@ -100,6 +102,7 @@ def test_same_ordering(datapath):
100102
[
101103
pytest.param("bs4", marks=td.skip_if_no("bs4")),
102104
pytest.param("lxml", marks=td.skip_if_no("lxml")),
105+
pytest.param("html5lib", marks=td.skip_if_no("lxml")),
103106
],
104107
scope="class",
105108
)

0 commit comments

Comments
 (0)