Trying to make travis print warnings

This commit is contained in:
Alan Saul 2015-08-19 10:10:41 +01:00
parent 624d65493c
commit 80161665b8
2 changed files with 6 additions and 5 deletions

View file

@ -13,6 +13,7 @@ class MiscTests(np.testing.TestCase):
def test_safe_exp_upper(self):
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always') # always print
assert np.isfinite(np.exp(self._lim_val_exp))
assert np.isinf(np.exp(self._lim_val_exp + 1))
assert np.isfinite(GPy.util.misc.safe_exp(self._lim_val_exp + 1))