diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-10-17 18:17:00 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-10-17 18:17:00 -0700 |
commit | 18acfa462a63bcdaf86360f0c94bc9347ecafad5 (patch) | |
tree | 667e7826ccec27d30f408af2a7d7c13c0b2def86 /numpy | |
parent | ac6329832d23e7788ad160d88d8af6a1a1d93da3 (diff) | |
parent | dc974f3a7aeff58b19822ce4253bb0edf8039f8d (diff) | |
download | numpy-18acfa462a63bcdaf86360f0c94bc9347ecafad5.tar.gz |
Merge pull request #3941 from charris/make-test-endian-independent
BUG: test_fortran_order_buffer fails on big endian architectures.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_regression.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py index 67f848079..02cf1b8df 100644 --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -1908,8 +1908,8 @@ class TestRegression(TestCase): def test_fortran_order_buffer(self): import numpy as np - a = np.array([['Hello', 'Foob']], dtype='<U5', order='F') - arr = np.ndarray(shape=[1, 2, 5], dtype='<U1', buffer=a) + a = np.array([['Hello', 'Foob']], dtype='U5', order='F') + arr = np.ndarray(shape=[1, 2, 5], dtype='U1', buffer=a) arr2 = np.array([[[sixu('H'), sixu('e'), sixu('l'), sixu('l'), sixu('o')], [sixu('F'), sixu('o'), sixu('o'), sixu('b'), sixu('')]]]) assert_array_equal(arr, arr2) |