From 5f52215e6369c3a5802574ba6ad295ce8fde7ea1 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Sun, 11 Oct 2015 00:23:21 +0100 Subject: [PATCH] Update pickle_tests.py --- GPy/testing/pickle_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPy/testing/pickle_tests.py b/GPy/testing/pickle_tests.py index f925c0a1..05bde22a 100644 --- a/GPy/testing/pickle_tests.py +++ b/GPy/testing/pickle_tests.py @@ -66,7 +66,8 @@ class Test(ListDictTestCase): with f: pickle.dump(piov, f) - pio2 = GPy.load(f) + with open(f): + pio2 = GPy.load(f) #py3 fix #self.assertListDictEquals(dict(piov.items()), dict(pio2.iteritems())) self.assertListDictEquals(dict(piov.items()), dict(pio2.items()))