#NEWLINE# def test_interp_linear_array_invalid2( self ) : #NEWLINE# #INDENT# x = np . linspace ( 1.0 , 10.0 , 10 ) #NEWLINE# y = self . f ( x ) #NEWLINE# xval = np . linspace ( 2.0 , 11.0 , 100 ) #NEWLINE# with pytest . raises ( Exception ) as exc : #NEWLINE# #INDENT# self . interp ( x , y , xval ) #NEWLINE# #UNINDENT# assert ( exc . value . args [ 0 ] == 'x values are out of interpolation bounds' )