#NEWLINE# def test_list_to_numpy_on_tuples( ) : #NEWLINE# #INDENT# data = [ [ 'a' , 1 ] , [ 'b' , 2 ] , [ 'c' , 3 ] ] #NEWLINE# ds = datashape . dshape ( 'var * (string[1], int32)' ) #NEWLINE# x = list_to_numpy ( data , dshape = ds ) #NEWLINE# assert ( convert ( list , x ) == [ ( 'a' , 1 ) , ( 'b' , 2 ) , ( 'c' , 3 ) ] )