Skip to content

Commit

Permalink
remove html5lib
Browse files Browse the repository at this point in the history
  • Loading branch information
picnixz committed Mar 24, 2024
1 parent 968a47d commit 7b9f40e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ dynamic = ["version"]
[project.optional-dependencies]
test = [
"pytest",
"html5lib",
]
lint = [
"flake8",
Expand Down
6 changes: 3 additions & 3 deletions tests/test_htmlhelp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pathlib import Path

import pytest
from html5lib import HTMLParser
from xml.etree.ElementTree import parse as xml_parse

from sphinxcontrib.htmlhelp import chm_htmlescape, default_htmlhelp_basename
from sphinx.config import Config
Expand Down Expand Up @@ -76,8 +76,8 @@ def assert_sitemap(node, name, filename):

# .hhc file
hhc = (app.outdir / 'pythondoc.hhc').read_text()
tree = HTMLParser(namespaceHTMLElements=False).parse(hhc)
items = tree.find('.//body/ul')
etree = xml_parse(app.outdir / 'pythondoc.hhc')
items = etree.find('.//body/ul')
assert len(items) == 4

# index
Expand Down

0 comments on commit 7b9f40e

Please sign in to comment.