mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-28 14:26:23 +02:00
Update pickle_tests.py
This commit is contained in:
parent
1e56fc62c2
commit
fa658fb622
1 changed files with 4 additions and 5 deletions
|
|
@ -62,12 +62,11 @@ class Test(ListDictTestCase):
|
|||
self.assertListDictEquals(pio._properties, pio2._properties)
|
||||
|
||||
f = tempfile.TemporaryFile('w+b')
|
||||
pickle.dump(piov, f)
|
||||
f.seek(0)
|
||||
pio2 = GPy.load(f)
|
||||
f.close()
|
||||
|
||||
with f:
|
||||
pickle.dump(piov, f)
|
||||
|
||||
with f:
|
||||
pio2 = GPy.load(f)
|
||||
#py3 fix
|
||||
#self.assertListDictEquals(dict(piov.items()), dict(pio2.iteritems()))
|
||||
self.assertListDictEquals(dict(piov.items()), dict(pio2.items()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue