diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-05-11 11:41:49 +0200 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2022-05-11 11:41:49 +0200 |
commit | e19c7d527a337b9c79133446e3510b23ccf32351 (patch) | |
tree | 9f72fe1c3fd087b15b4d8ac75740a8c2171bfd67 /numpy/core | |
parent | cacc3b7b73f1583ef52926cad9c40ea1574b0a69 (diff) | |
download | numpy-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.py | 3 |
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")], ]) |