mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-06 01:11:07 +03:00
metadata test: load pickle in bytes, not str
This commit is contained in:
parent
4e28fa78fc
commit
5c40e3ab99
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class MetadataTest(unittest.TestCase):
|
|||
savepath = os.path.join('metadata', appid + '.pickle')
|
||||
frommeta = app.field_dict()
|
||||
self.assertTrue(appid in apps)
|
||||
with open(savepath, 'r') as f:
|
||||
with open(savepath, 'rb') as f:
|
||||
frompickle = pickle.load(f)
|
||||
self.assertEquals(frommeta, frompickle)
|
||||
# Uncomment to overwrite
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue