Skip to content

Commit 738f3a0

Browse files
Backport PR #40233: DEPS: skip html tests if html5lib is not installed #40198 (#40253)
Co-authored-by: Fangchen Li <[email protected]>
1 parent 53e7814 commit 738f3a0

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
@@ -66,6 +66,7 @@ def assert_framelist_equal(list1, list2, *args, **kwargs):
6666

6767

6868
@td.skip_if_no("bs4")
69+
@td.skip_if_no("html5lib")
6970
def test_bs4_version_fails(monkeypatch, datapath):
7071
import bs4
7172

@@ -85,6 +86,7 @@ def test_invalid_flavor():
8586

8687
@td.skip_if_no("bs4")
8788
@td.skip_if_no("lxml")
89+
@td.skip_if_no("html5lib")
8890
def test_same_ordering(datapath):
8991
filename = datapath("io", "data", "html", "valid_markup.html")
9092
dfs_lxml = read_html(filename, index_col=0, flavor=["lxml"])
@@ -95,7 +97,7 @@ def test_same_ordering(datapath):
9597
@pytest.mark.parametrize(
9698
"flavor",
9799
[
98-
pytest.param("bs4", marks=td.skip_if_no("bs4")),
100+
pytest.param("bs4", marks=[td.skip_if_no("bs4"), td.skip_if_no("html5lib")]),
99101
pytest.param("lxml", marks=td.skip_if_no("lxml")),
100102
],
101103
scope="class",

0 commit comments

Comments
 (0)