summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-01-19 15:35:23 +0100
committerStefan Behnel <stefan_ml@behnel.de>2019-01-19 15:35:23 +0100
commit0a962c22acdb422e0a4956642aed5a08dcdcc1d1 (patch)
tree3976fe5dfbb7dbfb6860f6668df2fefee6d70f57
parent49414dbc7ddc2ca2979d6dbe1e44714b10d72e7e (diff)
downloadcython-0a962c22acdb422e0a4956642aed5a08dcdcc1d1.tar.gz
Fix a test on big-endian architectures.
Closes #1982.
-rw-r--r--tests/run/numpy_subarray.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run/numpy_subarray.pyx b/tests/run/numpy_subarray.pyx
index a572d4914..c5d82d4b1 100644
--- a/tests/run/numpy_subarray.pyx
+++ b/tests/run/numpy_subarray.pyx
@@ -21,7 +21,7 @@ def test_record_subarray():
# Make sure the dtype looks like we expect
assert descr.fields == {'a': (py_numpy.dtype('int32'), 0),
- 'b': (py_numpy.dtype(('<f8', (3, 3))), 4)}, descr.fields
+ 'b': (py_numpy.dtype(('=f8', (3, 3))), 4)}, descr.fields
# Make sure that HASSUBARRAY is working
assert not np.PyDataType_HASSUBARRAY(descr)