#NEWLINE# def test_cov_nearest( self ) : #NEWLINE# #INDENT# x = self . x #NEWLINE# res_r = self . res #NEWLINE# with warnings . catch_warnings ( ) : #NEWLINE# #INDENT# warnings . simplefilter ( 'ignore' ) #NEWLINE# y = cov_nearest ( x , method = 'nearest' , threshold = 1e-07 ) #NEWLINE# #UNINDENT# assert_almost_equal ( y , y . mat , decimal = 2 ) #NEWLINE# d = norm_f ( x , y ) #NEWLINE# assert_allclose ( d , res_r . normF , rtol = 0.0015 )