chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e28fa7
)
metadata test: load pickle in bytes, not str
author
Daniel Martí
<mvdan@mvdan.cc>
Mon, 4 Jan 2016 20:22:06 +0000
(21:22 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Fri, 11 Mar 2016 13:27:00 +0000
(13:27 +0000)
tests/metadata.TestCase
patch
|
blob
|
history
diff --git
a/tests/metadata.TestCase
b/tests/metadata.TestCase
index 33d18308c85ef805d63bd3696582dddd14d2f0f4..9dfe2bbcdf1adf94180959cde2ebe21b0bc7b6f6 100755
(executable)
--- a/
tests/metadata.TestCase
+++ b/
tests/metadata.TestCase
@@
-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, 'r
b
') as f:
frompickle = pickle.load(f)
self.assertEquals(frommeta, frompickle)
# Uncomment to overwrite