Skip to content

Commit

Permalink
Merge pull request #16 from tk0miya/9457_test
Browse files Browse the repository at this point in the history
Fix #9457: RemovedInSphinx50Warning on testing
  • Loading branch information
tk0miya authored Jul 17, 2021
2 parents bf40dce + 6a55612 commit 7e05fea
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 7e05fea

Please sign in to comment.