def test_convert_np_array(mixin_cols):
 t = QTable(mixin_cols)
 ta = t.as_array()
 m = mixin_cols['m']
 dtype_kind = (m.dtype.kind if hasattr(m, 'dtype') else 'O')
 assert (ta['m'].dtype.kind == dtype_kind)

def test_convert_np_array ( mixin_cols ) : t = QTable ( mixin_cols ) ta = t . as_array ( ) m = mixin_cols [ 'm' ] dtype_kind = ( m . dtype . kind if hasattr ( m , 'dtype' ) else 'O' ) assert ( ta [ 'm' ] . dtype . kind == dtype_kind )
test that converting to numpy array creates an object dtype and that each instance in the array has the expected type .