summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-05-11 11:41:49 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2022-05-11 11:41:49 +0200
commite19c7d527a337b9c79133446e3510b23ccf32351 (patch)
tree9f72fe1c3fd087b15b4d8ac75740a8c2171bfd67 /numpy/core
parentcacc3b7b73f1583ef52926cad9c40ea1574b0a69 (diff)
downloadnumpy-e19c7d527a337b9c79133446e3510b23ccf32351.tar.gz
TST: Fix byte-swap test for big-endian machines
One of the following test is mainly interesting on little endian machines, but that seems OK, the tests definitely run on somewhere :)
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/tests/test_numeric.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/tests/test_numeric.py b/numpy/core/tests/test_numeric.py
index 77fe748b7..fc5012e21 100644
--- a/numpy/core/tests/test_numeric.py
+++ b/numpy/core/tests/test_numeric.py
@@ -944,7 +944,8 @@ class TestTypes:
@pytest.mark.parametrize(["dtype1", "dtype2"],
[[np.dtype("V10"), np.dtype("V10")],
- [np.dtype([("name1", "<i8")]), np.dtype([("name1", ">i8")])],
+ [np.dtype([("name1", "i8")]),
+ np.dtype([("name1", np.dtype("i8").newbyteorder())])],
[np.dtype("i8,i8"), np.dtype("i8,>i8")],
[np.dtype("i8,i8"), np.dtype("i4,i4")],
])