#NEWLINE# def test_safe_exp_upper( self ) : #NEWLINE# #INDENT# with warnings . catch_warnings ( record = True ) as w : #NEWLINE# #INDENT# warnings . simplefilter ( 'always' ) #NEWLINE# assert np . isfinite ( np . exp ( self . _lim_val_exp ) ) #NEWLINE# assert np . isinf ( np . exp ( ( self . _lim_val_exp + 1 ) ) ) #NEWLINE# assert np . isfinite ( GPy . util . misc . safe_exp ( ( self . _lim_val_exp + 1 ) ) ) #NEWLINE# print ( w ) #NEWLINE# print ( len ( w ) ) #NEWLINE# assert ( len ( w ) <= 1 )