#NEWLINE# def test_invalid_fill_value( self ) : #NEWLINE# #INDENT# np . random . seed ( 1234 ) #NEWLINE# x = np . linspace ( 0 , 2 , 5 ) #NEWLINE# y = np . linspace ( 0 , 1 , 7 ) #NEWLINE# values = np . random . rand ( 5 , 7 ) #NEWLINE# RegularGridInterpolator ( ( x , y ) , values , fill_value = 1 ) #NEWLINE# assert_raises ( ValueError , RegularGridInterpolator , ( x , y ) , values , fill_value = ( 1 + 2j ) )