We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1683f50 commit 8c7a3f8Copy full SHA for 8c7a3f8
tests/test_htmlhelp.py
@@ -63,10 +63,8 @@ def test_chm(app):
63
64
# check .hhk file
65
outname = app.builder.config.htmlhelp_basename
66
- hhk_path = str(app.outdir / outname + '.hhk')
67
-
68
- with open(hhk_path, 'rb') as f:
69
- data = f.read()
+ hhk_path = (app.outdir / outname).with_suffix('.hhk')
+ data = hhk_path.read_bytes()
70
m = re.search(br'&#[xX][0-9a-fA-F]+;', data)
71
assert m is None, 'Hex escaping exists in .hhk file: ' + str(m.group(0))
72
0 commit comments