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