mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
Trying to make travis print warnings
This commit is contained in:
parent
624d65493c
commit
80161665b8
2 changed files with 6 additions and 5 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue