def testTranspose(self): for dtp in (numpy.int16, numpy.int32, numpy.float32, numpy.complex128): dt = numpy.dtype(dtp) for shape in ((6,10),(4,3,5),(2,2,3,5)): a1 = numpy.empty(shape,dt) a2 = a1.transpose() a1 = ndarray_ext.transpose(a1) self.assertEqual(a1.shape,a2.shape)