]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/test/numpy/shapes.py
3 # Copyright Jim Bosch & Ankit Daftery 2010-2012.
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
12 class TestShapes(unittest
.TestCase
):
15 a1
= numpy
.array([(0,1),(2,3)])
17 a1
= shapes_ext
.reshape(a1
,a1_shape
)
18 self
.assertEqual(a1_shape
,a1
.shape
)
20 if __name__
=="__main__":