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:
parent
b743ccd2b6
commit
49a88d6cbf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user