Skip to content

Fix #9457: RemovedInSphinx50Warning on testing #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_htmlhelp.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
def test_build_htmlhelp(app, status, warning):
app.build()

hhp = (app.outdir / 'pythondoc.hhp').text()
hhp = (app.outdir / 'pythondoc.hhp').read_text()
assert 'Compiled file=pythondoc.chm' in hhp
assert 'Contents file=pythondoc.hhc' in hhp
assert 'Default Window=pythondoc' in hhp
Expand Down Expand Up @@ -84,7 +84,7 @@ def assert_sitemap(node, name, filename):
assert node[1].attrib == {'name': 'Local', 'value': filename}

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