test_plistlib: must open plist as binary file

fixes https://ci.appveyor.com/project/adrientetar/ufolib/build/1.0.484/job/9em92wjinypwn2fu#L399
This commit is contained in:
Cosimo Lupo 2018-07-12 14:10:48 +01:00
parent b743ccd2b6
commit 49a88d6cbf
No known key found for this signature in database
GPG Key ID: 59D54DB0C9976482

View File

@ -398,7 +398,7 @@ def test_readPlist_from_path(pl):
def test_readPlist_from_file(pl):
f = open(os.path.join(datadir, "test.plist"))
f = open(os.path.join(datadir, "test.plist"), "rb")
pl2 = plistlib.readPlist(f)
assert pl2 == pl
assert not f.closed