From 4aeb0ce1ddca8dbd71852e42b923e635bb1d853b Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan Date: Fri, 8 Oct 2021 11:52:52 +0800 Subject: [PATCH] skip tests using scipy if not installed --- tests/test_functions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_functions.py b/tests/test_functions.py index 0661819c..7affb8d3 100644 --- a/tests/test_functions.py +++ b/tests/test_functions.py @@ -39,6 +39,8 @@ def test_interpolateArray_order1(): def check_interpolateArray(order): + pytest.importorskip("scipy") + def interpolateArray(data, x): result = pg.interpolateArray(data, x, order=order) assert result.shape == x.shape[:-1] + data.shape[x.shape[-1]:]