From 4cf70ea132e4d82c4c9a106079bd98ebb35054f6 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Sat, 10 Oct 2015 23:27:50 +0100 Subject: [PATCH] Update pickle_tests.py --- GPy/testing/pickle_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/testing/pickle_tests.py b/GPy/testing/pickle_tests.py index ad3c4f0b..17e29377 100644 --- a/GPy/testing/pickle_tests.py +++ b/GPy/testing/pickle_tests.py @@ -65,8 +65,8 @@ class Test(ListDictTestCase): with f: pickle.dump(piov, f) - - pio2 = GPy.load(f) + f.seek(0) + pio2 = pickle.load(f) #py3 fix #self.assertListDictEquals(dict(piov.items()), dict(pio2.iteritems())) self.assertListDictEquals(dict(piov.items()), dict(pio2.items()))