diff --git a/pandas/tests/io/test_html.py b/pandas/tests/io/test_html.py
index c34f2ebace683..39cbe843d1f2b 100644
--- a/pandas/tests/io/test_html.py
+++ b/pandas/tests/io/test_html.py
@@ -87,7 +87,7 @@ def test_same_ordering(datapath):
@pytest.mark.parametrize(
"flavor",
[
- pytest.param("bs4", marks=td.skip_if_no("lxml")),
+ pytest.param("bs4", marks=td.skip_if_no("bs4")),
pytest.param("lxml", marks=td.skip_if_no("lxml")),
],
scope="class",