mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +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')
|
savepath = os.path.join('metadata', appid + '.pickle')
|
||||||
frommeta = app.field_dict()
|
frommeta = app.field_dict()
|
||||||
self.assertTrue(appid in apps)
|
self.assertTrue(appid in apps)
|
||||||
with open(savepath, 'r') as f:
|
with open(savepath, 'rb') as f:
|
||||||
frompickle = pickle.load(f)
|
frompickle = pickle.load(f)
|
||||||
self.assertEquals(frommeta, frompickle)
|
self.assertEquals(frommeta, frompickle)
|
||||||
# Uncomment to overwrite
|
# Uncomment to overwrite
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue