def test_endian_independence():
 for endian in [u'<', u'>']:
  for ntype in [u'i', u'f']:
   for byte in [u'4', u'8']:
    x = np.array([1, 2, 3], dtype=((endian + ntype) + byte))
    u.m.to(u.cm, x)

def test_endian_independence ( ) : for endian in [ u'<' , u'>' ] : for ntype in [ u'i' , u'f' ] : for byte in [ u'4' , u'8' ] : x = np . array ( [ 1 , 2 , 3 ] , dtype = ( ( endian + ntype ) + byte ) ) u . m . to ( u . cm , x )
regression test for #744 a logic issue in the units code meant that big endian arrays could not be converted because the dtype is >f4 .