#NEWLINE# def _test_set_equal( self , pyfunc , value , valuetype ) : #NEWLINE# #INDENT# rec = numpy_support . from_dtype ( recordtype ) #NEWLINE# cfunc = self . get_cfunc ( pyfunc , ( rec [ : ] , types . intp , valuetype ) ) #NEWLINE# for i in range ( self . sample1d . size ) : #NEWLINE# #INDENT# got = self . sample1d . copy ( ) #NEWLINE# if ( numpy_support . version <= ( 1 , 9 ) ) : #NEWLINE# #INDENT# expect = np . recarray ( got . shape , got . dtype ) #NEWLINE# expect [ : ] = got #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# expect = got . copy ( ) . view ( np . recarray ) #NEWLINE# #UNINDENT# cfunc ( self , i , value ) #NEWLINE# pyfunc ( expect , i , value ) #NEWLINE# self . assertTrue ( np . all ( ( expect == got ) ) )