Skip to content

Commit 940926f

Browse files
authored
DEPS: skip html tests if html5lib is not installed #40198 (#40233)
1 parent 6423561 commit 940926f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/io/test_html.py

+3-1
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"])
@@ -98,7 +100,7 @@ def test_same_ordering(datapath):
98100
@pytest.mark.parametrize(
99101
"flavor",
100102
[
101-
pytest.param("bs4", marks=td.skip_if_no("bs4")),
103+
pytest.param("bs4", marks=[td.skip_if_no("bs4"), td.skip_if_no("html5lib")]),
102104
pytest.param("lxml", marks=td.skip_if_no("lxml")),
103105
],
104106
scope="class",

0 commit comments

Comments
 (0)