Skip to content

Commit baa5d06

Browse files
committed
fixup! Fix path operations in tests
1 parent 8e9f785 commit baa5d06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_applehelp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def check_structure(outdir):
1919
assert contentsdir.is_dir()
2020
assert (contentsdir / 'Info.plist').is_file()
2121

22-
plist = plistlib.load(contentsdir.joinpath('Info.plist').read_bytes())
22+
with contentsdir.joinpath('Info.plist').open('rb') as f:
23+
plist = plistlib.load(f)
2324
assert plist
2425
assert len(plist)
2526
assert plist.get('CFBundleIdentifier', None) == 'org.sphinx-doc.Sphinx.help'

0 commit comments

Comments
 (0)