#NEWLINE# def test_to_numpy_fields( self ) : #NEWLINE# #INDENT# import numpy as np #NEWLINE# ds = datashape . dshape ( '{x: int32, y: float32}' ) #NEWLINE# ( shape , dt ) = datashape . to_numpy ( ds ) #NEWLINE# self . assertEqual ( shape , ( ) ) #NEWLINE# self . assertEqual ( dt , np . dtype ( [ ( 'x' , 'int32' ) , ( 'y' , 'float32' ) ] ) )