From ca2e9d66f1d03e454d44b3fb958d6047df2b66a6 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Mon, 19 Aug 2024 02:19:57 -0400 Subject: [PATCH] Fix tests on big-endian systems (#9380) There is nothing in the data created in these tests that requires them to be little endian, so the dtype comparison should be for native byte order. --- xarray/tests/test_backends.py | 6 +++--- xarray/tests/test_coding_times.py | 4 ++-- xarray/tests/test_dask.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py index be90f90a7ed..bbe48663c1f 100644 --- a/xarray/tests/test_backends.py +++ b/xarray/tests/test_backends.py @@ -872,7 +872,7 @@ def test_roundtrip_empty_vlen_string_array(self) -> None: if actual["a"].dtype.metadata is not None: assert check_vlen_dtype(actual["a"].dtype) is str else: - assert actual["a"].dtype == np.dtype("