summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-10-17 17:16:56 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-10-17 17:16:56 -0600
commitdc974f3a7aeff58b19822ce4253bb0edf8039f8d (patch)
tree8b3066cf00b940422b7b17a556fc7bea2cfab0a0 /numpy/core
parentaf2b52ec162395e5ca034933ec621868bcaf9bc1 (diff)
downloadnumpy-dc974f3a7aeff58b19822ce4253bb0edf8039f8d.tar.gz
BUG: test_fortran_order_buffer fails on big endian architectures.
The numpy unicode string comparison function does not work correctly for non-native byte orders. That is a problem needing fixing, but test_fortran_order_buffer is only needed to check that the buffer works correctly for fortran order buffers, so let the endianess of test data be the platform default.
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)