#NEWLINE# def test_from_buffer_error( self ) : #NEWLINE# #INDENT# pyfunc = mod . vector_sin_float32 #NEWLINE# cfunc = jit ( nopython = True ) ( x ) #NEWLINE# x = np . arange ( 10 ) . astype ( np . float32 ) [ : : 2 ] #NEWLINE# y = np . zeros_like ( x ) #NEWLINE# with self . assertRaises ( errors . TypingError ) as raises : #NEWLINE# #INDENT# cfunc ( x , y ) #NEWLINE# #UNINDENT# self . assertIn ( 'from_buffer() unsupported on non-contiguous buffers' , str ( raises . exception ) )