Skip to content

Commit 7e05fea

Browse files
authored
Merge pull request #16 from tk0miya/9457_test
Fix #9457: RemovedInSphinx50Warning on testing
2 parents bf40dce + 6a55612 commit 7e05fea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_htmlhelp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
def test_build_htmlhelp(app, status, warning):
2222
app.build()
2323

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

8686
# .hhc file
87-
hhc = (app.outdir / 'pythondoc.hhc').text()
87+
hhc = (app.outdir / 'pythondoc.hhc').read_text()
8888
tree = HTMLParser(namespaceHTMLElements=False).parse(hhc)
8989
items = tree.find('.//body/ul')
9090
assert len(items) == 4

0 commit comments

Comments
 (0)