summaryrefslogtreecommitdiff
path: root/tests/test_build_applehelp.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_build_applehelp.py')
-rw-r--r--tests/test_build_applehelp.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/test_build_applehelp.py b/tests/test_build_applehelp.py
index ed0022ce1..9c5d46941 100644
--- a/tests/test_build_applehelp.py
+++ b/tests/test_build_applehelp.py
@@ -17,12 +17,6 @@ import pytest
from sphinx.testing.path import path
-# Use plistlib.load in 3.4 and above
-try:
- read_plist = plistlib.load
-except AttributeError:
- read_plist = plistlib.readPlist
-
def check_structure(outdir):
contentsdir = outdir / 'Contents'
@@ -30,7 +24,7 @@ def check_structure(outdir):
assert (contentsdir / 'Info.plist').isfile()
with open(contentsdir / 'Info.plist', 'rb') as f:
- plist = read_plist(f)
+ plist = plistlib.load(f)
assert plist
assert len(plist)
assert plist.get('CFBundleIdentifier', None) == 'org.sphinx-doc.Sphinx.help'