#NEWLINE# def test_integers( self ) : #NEWLINE# #INDENT# arr = np . array ( [ 1 , 2 , 3 , np . int64 ( 4 ) , np . int32 ( 5 ) ] , dtype = 'O' ) #NEWLINE# result = lib . infer_dtype ( arr ) #NEWLINE# self . assertEqual ( result , 'integer' ) #NEWLINE# arr = np . array ( [ 1 , 2 , 3 , np . int64 ( 4 ) , np . int32 ( 5 ) , 'foo' ] , dtype = 'O' ) #NEWLINE# result = lib . infer_dtype ( arr ) #NEWLINE# self . assertEqual ( result , 'mixed-integer' ) #NEWLINE# arr = np . array ( [ 1 , 2 , 3 , 4 , 5 ] , dtype = 'i4' ) #NEWLINE# result = lib . infer_dtype ( self ) #NEWLINE# self . assertEqual ( result , 'integer' )