~ubuntu-branches/ubuntu/trusty/python-numpy/trusty-updates

« back to all changes in this revision

Viewing changes to numpy/core/tests/test_api.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-01-28 19:03:02 UTC
  • mfrom: (7.1.13 experimental)
  • Revision ID: package-import@ubuntu.com-20130128190302-1kyak9j26902djjg
Tags: 1:1.7.0~rc1-1ubuntu1
Merge with Debian; remaining changes:

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
    assert_raises(TypeError, np.copyto, [1,2,3], [2,3,4])
139
139
 
140
140
def test_copy_order():
141
 
    a = np.arange(24).reshape(2,3,4)
 
141
    a = np.arange(24).reshape(2,1,3,4)
142
142
    b = a.copy(order='F')
143
 
    c = np.arange(24).reshape(2,4,3).swapaxes(1,2)
 
143
    c = np.arange(24).reshape(2,1,4,3).swapaxes(2,3)
144
144
 
145
145
    def check_copy_result(x, y, ccontig, fcontig, strides=False):
146
146
        assert_(not (x is y))