From d30e7310e342e2e3c803480b0172109452fcb4dd Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Fri, 3 Feb 2023 17:08:38 +0100 Subject: [PATCH] Issue #176 XarrayDataCube tests: skip scipy for int64 tests ref: conda-forge/staged-recipes#15717 --- tests/udf/test_xarraydatacube.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/udf/test_xarraydatacube.py b/tests/udf/test_xarraydatacube.py index ac3195298..b459ea91a 100644 --- a/tests/udf/test_xarraydatacube.py +++ b/tests/udf/test_xarraydatacube.py @@ -294,6 +294,8 @@ def test_save_load_no_xy_dim(roundtrip, tmp_path): @pytest.mark.parametrize("roundtrip", _roundtrips()) def test_save_load_dtype_int64(roundtrip, tmp_path): + if roundtrip.save_kwargs.get("engine") == "scipy": + pytest.skip("scipy engine does not appear to support int64") xdc = _build_xdc(ts=[2019, 2020, 2021], bands=["a", "b"], xs=[2, 3, 4, 5], ys=[5, 6, 7, 8, 9], dtype=numpy.int64) assert xdc.array.shape == (3, 2, 4, 5) result = _assert_equal_after_save_and_load(xdc, tmp_path, roundtrip=roundtrip)