diff options
author | Robert Kern <robert.kern@gmail.com> | 2008-05-21 20:18:40 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2008-05-21 20:18:40 +0000 |
commit | 6cdb11fe2178de6946ef011a86917c1525f912bd (patch) | |
tree | 065dd1894c6c6d9451e21dda54cc92e2a491e03a /numpy | |
parent | 2a72de6eb18a61f7711683c5bd243923f7ffe364 (diff) | |
download | numpy-6cdb11fe2178de6946ef011a86917c1525f912bd.tar.gz |
Try again to fix the endianness tests.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_multiarray.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py index ec5b47658..163ec7f90 100644 --- a/numpy/core/tests/test_multiarray.py +++ b/numpy/core/tests/test_multiarray.py @@ -839,8 +839,9 @@ class TestView(NumpyTestCase): ('b',np.int8),('a',np.int8)]) # We must be specific about the endianness here: y = x.view(dtype='<i4') - z = x.view(np.int32) - assert_array_equal(y,z) + # ... and again without the keyword. + z = x.view('<i4') + assert_array_equal(y, z) assert_array_equal(y, [67305985, 134678021]) def test_type(self): @@ -854,7 +855,7 @@ class TestView(NumpyTestCase): assert_array_equal(y,[[513]]) assert(isinstance(y,np.matrix)) - assert_equal(y.dtype,np.int16) + assert_equal(y.dtype, np.dtype('<i2')) class TestStats(NumpyTestCase): def test_subclass(self): |