skip tests using scipy if not installed

This commit is contained in:
KIU Shueng Chuan 2021-10-08 11:52:52 +08:00
parent a6bb2c6edd
commit 4aeb0ce1dd
1 changed files with 2 additions and 0 deletions

View File

@ -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]:]