summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-10-17 18:17:00 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-10-17 18:17:00 -0700
commit18acfa462a63bcdaf86360f0c94bc9347ecafad5 (patch)
tree667e7826ccec27d30f408af2a7d7c13c0b2def86 /numpy/core
parentac6329832d23e7788ad160d88d8af6a1a1d93da3 (diff)
parentdc974f3a7aeff58b19822ce4253bb0edf8039f8d (diff)
downloadnumpy-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/core')
-rw-r--r--numpy/core/tests/test_regression.py4
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)