Python 3 fixes

This commit is contained in:
Mike Croucher 2015-09-07 15:18:45 +01:00
parent 2f0d3b5dcd
commit ec7334846c
3 changed files with 8 additions and 7 deletions

View file

@ -1,3 +1,4 @@
from __future__ import print_function
import numpy as np
import scipy as sp
import GPy
@ -18,8 +19,8 @@ class MiscTests(np.testing.TestCase):
assert np.isinf(np.exp(self._lim_val_exp + 1))
assert np.isfinite(GPy.util.misc.safe_exp(self._lim_val_exp + 1))
print w
print len(w)
print(w)
print(len(w))
assert len(w)==1 # should have one overflow warning
def test_safe_exp_lower(self):